Skip to content

Commit

Permalink
Merge pull request #2086 from unboxed/use-strings-for-factory-classes
Browse files Browse the repository at this point in the history
Use strings for nested model factory class names
  • Loading branch information
pixeltrix authored Dec 19, 2024
2 parents b6fe095 + 2530d18 commit 376e32a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/factories/local_authority_informative.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

FactoryBot.define do
factory :local_authority_informative, class: LocalAuthority::Informative do
factory :local_authority_informative, class: "LocalAuthority::Informative" do
local_authority
title { Faker::Lorem.sentence }
text { Faker::Lorem.paragraph }
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/local_authority_policy_area.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

FactoryBot.define do
factory :local_authority_policy_area, class: LocalAuthority::PolicyArea do
factory :local_authority_policy_area, class: "LocalAuthority::PolicyArea" do
local_authority
description { Faker::Lorem.unique.sentence }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/local_authority_policy_guidance.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

FactoryBot.define do
factory :local_authority_policy_guidance, class: LocalAuthority::PolicyGuidance do
factory :local_authority_policy_guidance, class: "LocalAuthority::PolicyGuidance" do
local_authority
description { Faker::Lorem.unique.sentence }
end
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/local_authority_policy_reference.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

FactoryBot.define do
factory :local_authority_policy_reference, class: LocalAuthority::PolicyReference do
factory :local_authority_policy_reference, class: "LocalAuthority::PolicyReference" do
local_authority
code { Faker::IDNumber.unique.ssn_valid }
description { Faker::Lorem.unique.sentence }
Expand Down

0 comments on commit 376e32a

Please sign in to comment.