diff --git a/test/units/configuration_test.rb b/test/units/configuration_test.rb index cf011bb5..792df86d 100644 --- a/test/units/configuration_test.rb +++ b/test/units/configuration_test.rb @@ -101,11 +101,31 @@ class ConfigurationTest < Test::Unit::TestCase plugin_opts = Compass.configuration.to_sass_plugin_options - assert load_paths.include?("/home/chris/foo"), load_paths.inspect + assert load_paths.include?("/home/chris/my_compass_project/../foo") assert load_paths.include?("/path/to/my/framework"), load_paths.inspect assert_equal "/home/chris/my_compass_project/css/framework", plugin_opts[:template_location].find{|s,c| s == "/path/to/my/framework"}[1] assert_equal "/home/chris/my_compass_project/css/foo", plugin_opts[:template_location].find{|s,c| s == "/home/chris/my_compass_project/../foo"}[1] + + expected_serialization = <\"bar\"} + +# To disable debugging comments that display the original location of your selectors. Uncomment: +# line_comments = false + +EXPECTED + + assert_correct(expected_serialization, Compass.configuration.serialize) end def test_strip_trailing_directory_separators @@ -182,6 +241,26 @@ class ConfigurationTest < Test::Unit::TestCase Compass.add_configuration(contents, "test_strip_trailing_directory_separators") assert_equal "baz", Compass.configuration.foobar + expected_serialization = <