Skip to content

Commit

Permalink
Do not depend on yast2-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Feb 16, 2016
1 parent 7ddf7dd commit 3f69a37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/file_from_url_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ def Get(scheme, host, urlpath, localfile)
end
end

# avoid BuildRequiring a package that we stub entirely anyway
Yast::Storage = nil
Yast::StorageDevices = nil
before do
allow(Yast).to receive(:import).and_call_original
allow(Yast).to receive(:import).with("Storage").and_return true
allow(Yast).to receive(:import).with("StorageDevices").and_return true
end

subject { FileFromUrlTest.new }

describe "#Get" do
Expand Down

0 comments on commit 3f69a37

Please sign in to comment.