Skip to content

Commit

Permalink
Update the specs to use the context.
Browse files Browse the repository at this point in the history
  • Loading branch information
dombesz committed Jan 21, 2025
1 parent d16599e commit 6f4fb6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/projects/customizable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
bool_custom_field.id => true
}

project.save!
project.save!(context: :saving_custom_fields)
end

it_behaves_like "implicitly enabled and saved custom values"
Expand Down Expand Up @@ -426,7 +426,7 @@
before do
project.send(:"custom_field_#{text_custom_field.id}=", "foo")
project.send(:"custom_field_#{bool_custom_field.id}=", true)
project.save!
project.save!(context: :saving_custom_fields)
end

it_behaves_like "implicitly enabled and saved custom values"
Expand Down

0 comments on commit 6f4fb6f

Please sign in to comment.