Skip to content

Commit

Permalink
stub language module
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 15, 2016
1 parent c7cbfd0 commit 74bc8ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_helper.rb
Expand Up @@ -14,6 +14,14 @@
config.include Yast::I18n # available in it/let/before/...
end

# 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_module("Language")

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

0 comments on commit 74bc8ea

Please sign in to comment.