Sha256: 6816d25679ee50a2f1c4b13bce528e6537cdef499ba61c1d31d6ef2432084e69
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
# # Tests Windows OS abstraction code # require File.expand_path('tpkgtest', File.dirname(__FILE__)) class TpkgOSWindowsTests < Test::Unit::TestCase include TpkgTests def setup @windows = Tpkg::OS::Windows.new end def test_supported fact = Facter::Util::Fact.new('operatingsystem') Facter.expects(:[]).with('operatingsystem').returns(fact).at_least_once fact.stubs(:value).returns('windows') assert Tpkg::OS::Windows.supported? fact.stubs(:value).returns('Other') refute Tpkg::OS::Windows.supported? end def test_sudo_default refute @windows.sudo_default? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tpkg-2.3.5 | test/test_os_windows.rb |
tpkg-2.3.4 | test/test_os_windows.rb |