Skip to content

Commit

Permalink
stubbing AutoInstall
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 4, 2018
1 parent ee575c7 commit 0789e77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions package/yast2-firewall.spec
Expand Up @@ -27,8 +27,6 @@ Group: System/YaST
License: GPL-2.0
BuildRequires: perl-XML-Writer update-desktop-files yast2-testsuite
BuildRequires: yast2-devtools >= 3.1.10
# running testcases while build
BuildRequires: autoyast2-installation

# Firewalld read?
BuildRequires: yast2 >= 4.0.45
Expand Down
9 changes: 9 additions & 0 deletions test/test_helper.rb
Expand Up @@ -26,6 +26,15 @@
require "yast"
require "yast/rspec"

# stub module to prevent its Import
# Useful for modules from different yast packages, to avoid build dependencies
def stub_module(name)
Yast.const_set name.to_sym, Class.new { def self.fake_method; end }
end

# stub classes from other modules to speed up a build
stub_module("AutoInstall")

if ENV["COVERAGE"]
require "simplecov"
SimpleCov.start do
Expand Down

0 comments on commit 0789e77

Please sign in to comment.