From c3062b9fe3b3f0f78eeede9cb662a1f6475252c7 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Tue, 19 Jul 2011 11:44:14 -0700 Subject: [PATCH] Revert "removed string compairson in configuration tests it was compairing comments which is unneeded when also testing for proper values" This reverts commit 400623f4ebcc3235e02625765cfb1af08c128753. --- test/units/configuration_test.rb | 83 +++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 2 deletions(-) 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 = <