Sha256: 2d57fcf232954b0fa142d9480fc2b13a750a8d952af02eb9593a6bcdfb8aace4

Contents?: true

Size: 538 Bytes

Versions: 13

Compression:

Stored size: 538 Bytes

Contents

require_relative 'helper'
require_relative 'ext/module'

class TestOperatingSystem < Test::Unit::TestCase
  def test_is_mac?
    Object.stub_const_and_test(:RUBY_PLATFORM, 'x86_64-darwin11.2.0') { assert_equal(true, OperatingSystem.is_mac?) }
  end

  def test_is_linux?
    Object.stub_const_and_test(:RUBY_PLATFORM, 'x86_64-linux') { assert_equal(true, OperatingSystem.is_linux?) }
  end

  def test_is_windows?
    Object.stub_const_and_test(:RUBY_PLATFORM, 'i386-mingw32') { assert_equal(true, OperatingSystem.is_windows?) }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
agile_notifier-3.1.2 test/test_operating_system.rb
agile_notifier-3.0.2 test/test_operating_system.rb
agile_notifier-3.0.1 test/test_operating_system.rb
agile_notifier-3.0.0 test/test_operating_system.rb
agile_notifier-2.1.4 test/test_operating_system.rb
agile_notifier-2.1.3 test/test_operating_system.rb
agile_notifier-2.1.2 test/test_operating_system.rb
agile_notifier-2.1.1 test/test_operating_system.rb
agile_notifier-2.1 test/test_operating_system.rb
agile_notifier-2.0 test/test_operating_system.rb
agile_notifier-1.1.1 test/test_operating_system.rb
agile_notifier-1.1 test/test_operating_system.rb
agile_notifier-1.0 test/test_operating_system.rb