Fix RSpec/ExpectChange cop (#25101)
This commit is contained in:
parent
1caa5ff39e
commit
d2e5430d4a
12 changed files with 24 additions and 41 deletions
|
@ -42,7 +42,7 @@ describe Admin::CustomEmojisController do
|
|||
let(:params) { { shortcode: 'test', image: image } }
|
||||
|
||||
it 'creates custom emoji' do
|
||||
expect { subject }.to change { CustomEmoji.count }.by(1)
|
||||
expect { subject }.to change(CustomEmoji, :count).by(1)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue