Sha256: 8e42bca4c3041121c5f05739c68b0b4921b8176012bdefa570629eba29d384a8
Contents?: true
Size: 929 Bytes
Versions: 3
Compression:
Stored size: 929 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "test_helper") class CompassModuleTest < Test::Unit::TestCase def setup Compass.reset_configuration! Compass.instance_variable_set("@shared_extension_paths", nil) @original_home = ENV["HOME"] end def teardown ENV["HOME"] = @original_home Compass.reset_configuration! end def test_shared_extension_paths_with_valid_home ENV["HOME"] = "/" assert_equal ["/.compass/extensions"], Compass.shared_extension_paths end def test_shared_extension_paths_with_nil_home ENV["HOME"] = nil assert_equal [], Compass.shared_extension_paths end def test_shared_extension_paths_with_file_home ENV["HOME"] = __FILE__ assert_equal [], Compass.shared_extension_paths end def test_shared_extension_paths_with_relative_home ENV["HOME"] = "." assert_equal ["./.compass/extensions"], Compass.shared_extension_paths end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
compass-0.12.2.rc.0 | test/units/compass_module_test.rb |
compass-0.12.1 | test/units/compass_module_test.rb |
compass-0.12.0 | test/units/compass_module_test.rb |