From 9d4852ef260774e3121fd74086f84b370cbe7112 Mon Sep 17 00:00:00 2001 From: GabrielSVinha Date: Fri, 14 Jul 2017 14:47:57 -0300 Subject: [PATCH] Fix rubocop issues --- .../providers/lenovo/physical_infra_manager_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/manageiq/providers/lenovo/physical_infra_manager_spec.rb b/spec/models/manageiq/providers/lenovo/physical_infra_manager_spec.rb index b1f5d90955..c5d180a8f3 100644 --- a/spec/models/manageiq/providers/lenovo/physical_infra_manager_spec.rb +++ b/spec/models/manageiq/providers/lenovo/physical_infra_manager_spec.rb @@ -146,24 +146,24 @@ context 'valid discover' do before :each do EvmSpecHelper.local_miq_server(:zone => Zone.seed) - @port = Random.rand(10000).to_s + @port = Random.rand(10_000).to_s @address = URI('https://' + Faker::Internet.ip_v4_address + ':' + @port) WebMock.allow_net_connect! stub_request(:get, File.join(@address.to_s, '/aicc')).to_return(:status => [200, 'OK']) end it 'should create a new instance' do - expect{described_class.discover(@address.host, @port)}.to change{described_class.count}.by 1 + expect { described_class.discover(@address.host, @port) }.to change { described_class.count }.by 1 end end context 'invalid discover' do before :each do - @port = Random.rand(10000).to_s + @port = Random.rand(10_000).to_s @address = URI('https://' + Faker::Internet.ip_v4_address + ':' + @port) end it 'should not create a new instance' do - expect{described_class.discover(@address.host, @port)}.to change{described_class.count}.by 0 + expect { described_class.discover(@address.host, @port) }.to change { described_class.count }.by 0 end end end