Fix RSpec/ExpectChange cop (#25101)
This commit is contained in:
@@ -52,7 +52,7 @@ describe InvitesController do
|
||||
end
|
||||
|
||||
it 'succeeds to create a invite' do
|
||||
expect { subject }.to change { Invite.count }.by(1)
|
||||
expect { subject }.to change(Invite, :count).by(1)
|
||||
expect(subject).to redirect_to invites_path
|
||||
expect(Invite.last).to have_attributes(user_id: user.id, max_uses: 10)
|
||||
end
|
||||
|
Reference in New Issue
Block a user