Skip to content

Commit

Permalink
Mock Pkg in inst_finish_test.rb
Browse files Browse the repository at this point in the history
Do not load the installed packages from the real system in the tests.
  • Loading branch information
lslezak committed Aug 23, 2016
1 parent 2d918a4 commit 049ac18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/inst_finish_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
allow(Yast::PackageCallbacks).to receive(:RegisterEmptyProgressCallbacks)
allow(Yast::PackageCallbacks).to receive(:RestorePreviousProgressCallbacks)

allow(Yast::Pkg).to receive(:TargetInitialize)
allow(Yast::Pkg).to receive(:TargetLoad)

allow(Yast::Hooks).to receive(:run)
end

Expand Down

0 comments on commit 049ac18

Please sign in to comment.