Skip to content

Commit a9a1f5e

Browse files
committed
refactor(factories): use blocks to se values
1 parent 3eeda52 commit a9a1f5e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spec/dummy/spec/factories/cities.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FactoryBot.define do
44
factory :city do
5-
name "MyString"
6-
region nil
5+
name { "MyString" }
6+
region { nil }
77
end
88
end

spec/dummy/spec/factories/countries.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
FactoryBot.define do
44
factory :country do
5-
name "MyString"
5+
name { "MyString" }
66
end
77
end

spec/dummy/spec/factories/regions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FactoryBot.define do
44
factory :region do
5-
name "MyString"
6-
country nil
5+
name { "MyString" }
6+
country { nil }
77
end
88
end

0 commit comments

Comments
 (0)