Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 14, 2021
1 parent 06df228 commit 7b95c5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/installation_medium_test.rb
Expand Up @@ -22,12 +22,16 @@
shared_examples(:check_inst_url) do |method|
it "raises an exception when the installation URL is nil" do
expect(Yast::InstURL).to receive(:installInf2Url).and_return(nil)
expect { described_class.public_send(method) }.to raise_exception(/The installation URL is not set/)
expect { described_class.public_send(method) }.to(
raise_exception(/The installation URL is not set/)
)
end

it "raises an exception when the installation URL is empty" do
expect(Yast::InstURL).to receive(:installInf2Url).and_return("")
expect { described_class.public_send(method) }.to raise_exception(/The installation URL is not set/)
expect { described_class.public_send(method) }.to(
raise_exception(/The installation URL is not set/)
)
end
end

Expand Down

0 comments on commit 7b95c5a

Please sign in to comment.