Sha256: 44f797f357c5dc29282f1c8defc7afebc1810ab58feafb93304119ed4923d4b9
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', '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
6 entries across 6 versions & 2 rubygems