Browse Source

Rubocop

pull/782/head
Stéphane Meny 3 years ago
parent
commit
5bd591ebdf
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 2
      spec/factories/location.rb
  2. 2
      spec/features/schemes_spec.rb

2
spec/factories/location.rb

@ -8,7 +8,7 @@ FactoryBot.define do
mobility_type { %w[A M N W X].sample }
location_code { "E09000033" }
location_admin_district { "Westminster" }
startdate { Faker::Date.between(from: 6.months.ago, to: Date.today) }
startdate { Faker::Date.between(from: 6.months.ago, to: Time.zone.today) }
scheme
trait :export do
postcode { "SW1A 2AA" }

2
spec/features/schemes_spec.rb

@ -175,7 +175,7 @@ RSpec.describe "Schemes scheme Features" do
context "when there are locations that belong to the selected scheme" do
let!(:schemes) { FactoryBot.create_list(:scheme, 5) }
let(:scheme) { schemes.first }
let!(:locations) { FactoryBot.create_list(:location, 3, scheme:, postcode: "AA11AA", startdate: Time.utc(2022,1,1)) }
let!(:locations) { FactoryBot.create_list(:location, 3, scheme:, postcode: "AA11AA", startdate: Time.utc(2022, 1, 1)) }
before do
visit("schemes")

Loading…
Cancel
Save