diff options
Diffstat (limited to 'spec/models/concerns/token_authenticatable_spec.rb')
-rw-r--r-- | spec/models/concerns/token_authenticatable_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/concerns/token_authenticatable_spec.rb b/spec/models/concerns/token_authenticatable_spec.rb index 822e2817d84..9bd20676c0e 100644 --- a/spec/models/concerns/token_authenticatable_spec.rb +++ b/spec/models/concerns/token_authenticatable_spec.rb @@ -260,7 +260,7 @@ RSpec.describe Ci::Build, 'TokenAuthenticatable' do it 'persists a new token' do build.save! - build.token.yield_self do |previous_token| + build.token.then do |previous_token| build.reset_token! expect(build.token).not_to eq previous_token |