Skip to content

Commit

Permalink
Switch to using reload for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisruk committed Mar 14, 2023
1 parent 6d22e95 commit 12c68bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/graphql/mutations/update_component_mutation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

context 'when unauthenticated' do
it 'does not update a component' do
expect { result }.not_to change(component, :name)
expect { result }.not_to change { component.reload.name }
end

it 'returns an error' do
Expand All @@ -44,7 +44,7 @@
let(:graphql_context) { nil }

it 'does not update a component' do
expect { result }.not_to change(component, :name)
expect { result }.not_to change { component.reload.name }
end
end

Expand Down

0 comments on commit 12c68bc

Please sign in to comment.