Browse Source

refactor: linting

pull/1455/head
natdeanlewissoftwire 3 years ago
parent
commit
6acb27ed71
  1. 6
      spec/requests/locations_controller_spec.rb
  2. 1
      spec/requests/schemes_controller_spec.rb

6
spec/requests/locations_controller_spec.rb

@ -1264,7 +1264,6 @@ RSpec.describe LocationsController, type: :request do
end end
context "when location is complete" do context "when location is complete" do
it "confirms location" do it "confirms location" do
expect(Location.last.confirmed).to eq(true) expect(Location.last.confirmed).to eq(true)
end end
@ -1289,8 +1288,6 @@ RSpec.describe LocationsController, type: :request do
expect(page).not_to have_content("added to this scheme") expect(page).not_to have_content("added to this scheme")
end end
end end
end end
context "when trying to edit check_answers of location that belongs to another organisation" do context "when trying to edit check_answers of location that belongs to another organisation" do
@ -1328,7 +1325,6 @@ RSpec.describe LocationsController, type: :request do
end end
context "when location is complete" do context "when location is complete" do
it "confirms location" do it "confirms location" do
expect(Location.last.confirmed).to eq(true) expect(Location.last.confirmed).to eq(true)
end end
@ -1353,8 +1349,6 @@ RSpec.describe LocationsController, type: :request do
expect(page).not_to have_content("added to this scheme") expect(page).not_to have_content("added to this scheme")
end end
end end
end end
context "when the requested location does not exist" do context "when the requested location does not exist" do

1
spec/requests/schemes_controller_spec.rb

@ -941,7 +941,6 @@ RSpec.describe SchemesController, type: :request do
patch "/schemes/#{scheme_to_update.id}", params: patch "/schemes/#{scheme_to_update.id}", params:
end end
context "when confirming unfinished scheme" do context "when confirming unfinished scheme" do
let(:params) { { scheme: { owning_organisation_id: user.organisation.id, arrangement_type: nil, confirmed: true, page: "check-answers" } } } let(:params) { { scheme: { owning_organisation_id: user.organisation.id, arrangement_type: nil, confirmed: true, page: "check-answers" } } }

Loading…
Cancel
Save