Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Sep 22, 2023
1 parent f09d283 commit 7b7da1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class ChangeSubjectLimitedToNotNullInCountries < ActiveRecord::Migration[7.0]
def change
change_column :countries, :subject_limited, :boolean, default: false, null: false
change_column :countries,
:subject_limited,
:boolean,
default: false,
null: false
end
end
6 changes: 1 addition & 5 deletions spec/models/eligibility_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,7 @@
subject { eligibility_check.status }

let(:eligibility_check) { described_class.new(attributes) }
let(:country) do
create(
:country,
)
end
let(:country) { create(:country) }

context "when no attributes are present" do
let(:attributes) { nil }
Expand Down
24 changes: 4 additions & 20 deletions spec/system/support_interface/countries_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,34 +59,18 @@
private

def given_countries_exist
create(
:region,
:national,
country: create(:country, code: "IE"),
)
create(
:region,
:national,
country: create(:country, code: "PL"),
)
create(:region, :national, country: create(:country, code: "IE"))
create(:region, :national, country: create(:country, code: "PL"))
united_states = create(:country, code: "US")
create(:region, name: "Hawaii", country: united_states)
create(:region, name: "New York", country: united_states)
create(
:region,
:national,
country: create(:country, code: "ES"),
)
create(:region, :national, country: create(:country, code: "ES"))
create(
:region,
name: "British Columbia",
country: create(:country, code: "CA"),
)
create(
:region,
:national,
country: create(:country, code: "CY"),
)
create(:region, :national, country: create(:country, code: "CY"))
end

def when_i_visit_the_countries_page
Expand Down

0 comments on commit 7b7da1a

Please sign in to comment.