Browse Source

lint

pull/1006/head
Kat 4 years ago
parent
commit
2177c049b4
  1. 2
      spec/models/location_spec.rb
  2. 6
      spec/requests/locations_controller_spec.rb
  3. 6
      spec/requests/schemes_controller_spec.rb

2
spec/models/location_spec.rb

@ -122,7 +122,7 @@ RSpec.describe Location, type: :model do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
context "when there have not been any previous deactivations" do context "when there have not been any previous deactivations" do
it "returns active if the location has no deactivation records" do it "returns active if the location has no deactivation records" do
expect(location.status).to eq(:active) expect(location.status).to eq(:active)

6
spec/requests/locations_controller_spec.rb

@ -1251,7 +1251,7 @@ RSpec.describe LocationsController, type: :request do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
context "with default date" do context "with default date" do
let(:params) { { location: { deactivation_date_type: "default", deactivation_date: } } } let(:params) { { location: { deactivation_date_type: "default", deactivation_date: } } }
@ -1284,7 +1284,7 @@ RSpec.describe LocationsController, type: :request do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
it "updates existing location with valid deactivation date and renders location page" do it "updates existing location with valid deactivation date and renders location page" do
follow_redirect! follow_redirect!
@ -1412,7 +1412,7 @@ RSpec.describe LocationsController, type: :request do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
context "with active location" do context "with active location" do
let(:add_deactivations) {} let(:add_deactivations) {}

6
spec/requests/schemes_controller_spec.rb

@ -258,7 +258,7 @@ RSpec.describe SchemesController, type: :request do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
context "with active scheme" do context "with active scheme" do
let(:add_deactivations) {} let(:add_deactivations) {}
@ -1782,7 +1782,7 @@ RSpec.describe SchemesController, type: :request do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
context "with default date" do context "with default date" do
let(:params) { { scheme: { deactivation_date_type: "default", deactivation_date: } } } let(:params) { { scheme: { deactivation_date_type: "default", deactivation_date: } } }
@ -1815,7 +1815,7 @@ RSpec.describe SchemesController, type: :request do
after do after do
Timecop.unfreeze Timecop.unfreeze
end end
it "updates existing scheme with valid deactivation date and renders scheme page" do it "updates existing scheme with valid deactivation date and renders scheme page" do
follow_redirect! follow_redirect!

Loading…
Cancel
Save