mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Fix RSpec/ExpectInHook cop (#25100)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user