(rubocop) Fix Layout/AlignHash & Layout/IndentHash

This commit is contained in:
Tim Sharpe 2019-02-03 13:08:00 +11:00
parent f2167f8be7
commit 851009b1f6
7 changed files with 74 additions and 70 deletions

View file

@ -58,17 +58,17 @@ describe Service do
describe '#token_status' do
it 'reports the status of a token' do
config = {
'user' => 'first.last',
'url' => 'http://default.url',
'user' => 'first.last',
'url' => 'http://default.url',
}
options = MockOptions.new('token' => 'token-value')
service = Service.new(options, config)
status = {
'ok' => true,
'user' => config['user'],
'created' => '2017-09-22 02:04:18 +0000',
'last_accessed' => '2017-09-22 02:04:28 +0000',
'reserved_hosts' => [],
'ok' => true,
'user' => config['user'],
'created' => '2017-09-22 02:04:18 +0000',
'last_accessed' => '2017-09-22 02:04:28 +0000',
'reserved_hosts' => [],
}
allow(Auth).to(receive(:token_status)
.with(nil, config['url'], 'token-value')