From 002f7b4653511403f4eb6ca1be99b11ac2a73e74 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 26 Mar 2019 10:50:34 -0400 Subject: [PATCH] Fix rubocop warnings. --- spec/models/conversion_host_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/conversion_host_spec.rb b/spec/models/conversion_host_spec.rb index 08ca9f98171..ac26debe5e8 100644 --- a/spec/models/conversion_host_spec.rb +++ b/spec/models/conversion_host_spec.rb @@ -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 @@ -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