Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FactoryBot Deprecated behavior -- static attributes will be removed in favor of dynamic attributes #366

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/factories/conversations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

factory :conversation_with_messages do
transient do
user nil
recipients nil
user { nil }
recipients { nil }
message_count { 2 }
end

Expand Down
2 changes: 1 addition & 1 deletion spec/factories/moderations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
factory :reported_comment do
transient do
message { 'reported' }
user nil
user { nil }
end

before :create do |moderation, evaluator|
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/projects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
sequence :id
display_name { "Project #{ id }" }
slug{ "#{ create(:user).login.parameterize }/#{ display_name.parameterize }" }
private nil
private { nil }
launch_approved { true }
sequence :launched_row_order
end
Expand Down
Loading