mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(rubocop) Fix Style/BracesAroundHashParameters
This commit is contained in:
parent
79f764560d
commit
d95c6946b8
2 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue