Sha256: 9a39979f56e3a9180387a4c086ee4ac8cf7762a77979ad1a3b8537538e571ef2

Contents?: true

Size: 704 Bytes

Versions: 46

Compression:

Stored size: 704 Bytes

Contents

require "test_helper"

class PlatformTest < Test::Unit::TestCase
  context "file options" do
    should "include add binary bit to options on windows platform" do
      # This constant is not defined on non-windows platforms, so define it here
      File::BINARY = 4096 unless defined?(File::BINARY)

      Mario::Platform.expects(:windows?).returns(true)
      assert_equal Vagrant::Util::Platform.tar_file_options, File::CREAT|File::EXCL|File::WRONLY|File::BINARY
    end

    should "not include binary bit on other platforms" do
      Mario::Platform.expects(:windows?).returns(false)
      assert_equal Vagrant::Util::Platform.tar_file_options, File::CREAT|File::EXCL|File::WRONLY
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
vagrantup-0.7.8 test/vagrant/util/platform_test.rb
vagrantup-0.7.7 test/vagrant/util/platform_test.rb
vagrantup-0.7.6 test/vagrant/util/platform_test.rb
vagrantup-0.7.5 test/vagrant/util/platform_test.rb
vagrantup-0.7.4 test/vagrant/util/platform_test.rb
vagrantup-0.7.3 test/vagrant/util/platform_test.rb
vagrantup-0.7.2 test/vagrant/util/platform_test.rb
vagrantup-0.7.1 test/vagrant/util/platform_test.rb
vagrantup-0.7.0 test/vagrant/util/platform_test.rb
vagrantup-0.6.9 test/vagrant/util/platform_test.rb
vagrantup-0.6.8 test/vagrant/util/platform_test.rb
vagrantup-0.6.7 test/vagrant/util/platform_test.rb
vagrantup-0.6.6 test/vagrant/util/platform_test.rb
vagrantup-0.6.5 test/vagrant/util/platform_test.rb
vagrantup-0.6.4 test/vagrant/util/platform_test.rb
vagrantup-0.6.3 test/vagrant/util/platform_test.rb
vagrantup-0.6.2 test/vagrant/util/platform_test.rb
vagrantup-0.6.1 test/vagrant/util/platform_test.rb
vagrantup-0.6.0 test/vagrant/util/platform_test.rb
vagrantup-0.5.4 test/vagrant/util/platform_test.rb