Skip to content

Commit

Permalink
Fix rubocop warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berger committed Mar 26, 2019
1 parent 44d3ae5 commit 002f7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/conversion_host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@

it "works as expected with no associated authentications if the connect_ssh method fails" do
allow(conversion_host_vm).to receive(:connect_ssh).and_raise(Exception.new)
expect{ conversion_host_vm.verify_credentials }.to raise_error{ RuntimeError }
expect { conversion_host_vm.verify_credentials }.to raise_error(RuntimeError)
end

it "works if there is an associated validation" do
Expand All @@ -292,7 +292,7 @@
authentication = FactoryBot.create(:authentication_ssh_keypair)
conversion_host_vm.authentications << authentication
allow(Net::SSH).to receive(:start).and_raise(Net::SSH::AuthenticationFailed.new)
expect{ conversion_host_vm.verify_credentials }.to raise_error{ MiqException::MiqInvalidCredentialsError }
expect { conversion_host_vm.verify_credentials }.to raise_error(MiqException::MiqInvalidCredentialsError)
end

it "works if there are multiple associated validations" do
Expand Down

0 comments on commit 002f7b4

Please sign in to comment.