(rubocop) Fix Layout/SpaceAfterComma

This commit is contained in:
Tim Sharpe 2019-02-03 12:48:04 +11:00
parent cecea8bc05
commit 9afae18ee2
3 changed files with 3 additions and 3 deletions

View file

@ -51,7 +51,7 @@ class Vmfloaty
os_types = Utils.generate_os_hash(args)
max_pool_request = 5
large_pool_requests = os_types.select { |_,v| v > max_pool_request }
large_pool_requests = os_types.select { |_, v| v > max_pool_request }
if !large_pool_requests.empty? && !force
STDERR.puts "Requesting vms over #{max_pool_request} requires a --force flag."
STDERR.puts 'Try again with `floaty get --force`'

View file

@ -153,7 +153,7 @@ BODY
end
it 'retrieves a multiple vms with a token' do
stub_request(:post,"#{@nspooler_url}/host/aix-7.1-power+solaris-10-sparc+solaris-10-sparc")
stub_request(:post, "#{@nspooler_url}/host/aix-7.1-power+solaris-10-sparc+solaris-10-sparc")
.with(:headers => @post_request_headers)
.to_return(:status => 200, :body => @retrieve_response_body_many, :headers => {})

View file

@ -44,7 +44,7 @@ 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'))