Fix RSpec/ExpectInHook cop (#25100)
This commit is contained in:
parent
b6b4ea4ca5
commit
778e4a7bf7
4 changed files with 11 additions and 23 deletions
|
@ -182,12 +182,10 @@ describe Settings::ApplicationsController do
|
|||
describe 'regenerate' do
|
||||
let(:token) { user.token_for_app(app) }
|
||||
|
||||
before do
|
||||
it 'creates new token' do
|
||||
expect(token).to_not be_nil
|
||||
post :regenerate, params: { id: app.id }
|
||||
end
|
||||
|
||||
it 'creates new token' do
|
||||
expect(user.token_for_app(app)).to_not eql(token)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue