(rubocop) Fix Style/BracesAroundHashParameters

This commit is contained in:
Tim Sharpe 2019-02-03 11:08:05 +11:00
parent 79f764560d
commit d95c6946b8
2 changed files with 11 additions and 11 deletions

View file

@ -45,14 +45,14 @@ describe Service do
describe '#delete_token' do
it 'deletes a token' do
service = Service.new(MockOptions.new,{'user' => 'first.last', 'url' => 'http://default.url'})
service = Service.new(MockOptions.new,'user' => 'first.last', 'url' => 'http://default.url')
allow(Commander::UI).to(receive(:password)
.with('Enter your pooler service password:', '*')
.and_return('hunter2'))
allow(Auth).to(receive(:delete_token)
.with(nil, 'http://default.url', 'first.last', 'hunter2', 'token-value')
.and_return('ok' => true))
expect(service.delete_token(nil, 'token-value')).to eql({'ok' => true})
expect(service.delete_token(nil, 'token-value')).to eql('ok' => true)
end
end