Remove spec covering html format in SchedulesController#index, this is not used anywhere

This commit is contained in:
Luis Ramos
2020-02-27 19:05:36 +00:00
parent 03c91dfac1
commit b528903aa8

View File

@@ -10,19 +10,6 @@ describe Admin::SchedulesController, type: :controller do
let!(:coordinated_schedule) { create(:schedule, order_cycles: [coordinated_order_cycle] ) }
let!(:uncoordinated_schedule) { create(:schedule, order_cycles: [other_order_cycle] ) }
context "html" do
context "where I manage an order cycle coordinator" do
before do
allow(controller).to receive_messages spree_current_user: managed_coordinator.owner
end
it "returns an empty @collection" do
spree_get :index, format: :html
expect(assigns(:collection)).to eq []
end
end
end
context "json" do
context "where I manage an order cycle coordinator" do
before do