From 85268281bc834a055890f90f7779ea951a101b2e Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 24 Apr 2011 16:41:56 -0700 Subject: [PATCH] Fix failing tests due to load path changes. --- Gemfile | 2 +- Gemfile.lock | 6 +++--- test/configuration_test.rb | 33 +++++++++++++++++++++++++++------ 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index 0b0783ec..ead7dac2 100644 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ gem "rspec", "~>2.0.0" gem "rails", "~>3.0.0.rc" gem "compass-validator", "3.0.0" gem "css_parser", "~> 1.0.1" -gem "sass", "3.1.0.alpha.249" +gem "sass", "3.1.0.alpha.263" gem "haml", "~> 3.1.0.alpha" gem "rcov" gem "rubyzip" diff --git a/Gemfile.lock b/Gemfile.lock index af131166..f329954b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,7 +7,7 @@ GIT PATH remote: . specs: - compass (0.11.beta.7.613753e) + compass (0.11.beta.7.a997fa2) chunky_png (~> 1.1.1) fssm (>= 0.2.7) sass (>= 3.1.0.alpha.249) @@ -118,7 +118,7 @@ GEM ruby-json (1.1.2) ruby-prof (0.10.5) rubyzip (0.9.4) - sass (3.1.0.alpha.249) + sass (3.1.0.alpha.263) term-ansicolor (1.0.5) thor (0.14.6) timecop (0.3.5) @@ -145,5 +145,5 @@ DEPENDENCIES rspec (~> 2.0.0) ruby-prof rubyzip - sass (= 3.1.0.alpha.249) + sass (= 3.1.0.alpha.263) timecop diff --git a/test/configuration_test.rb b/test/configuration_test.rb index 6e75a032..419e5b27 100644 --- a/test/configuration_test.rb +++ b/test/configuration_test.rb @@ -87,10 +87,16 @@ class ConfigurationTest < Test::Unit::TestCase Compass.add_configuration(contents, "test_additional_import_paths") - assert Compass.configuration.to_sass_engine_options[:load_paths].include?("/home/chris/my_compass_project/../foo") - assert Compass.configuration.to_sass_engine_options[:load_paths].include?("/path/to/my/framework"), Compass.configuration.to_sass_engine_options[:load_paths].inspect - assert_equal "/home/chris/my_compass_project/css/framework", Compass.configuration.to_sass_plugin_options[:template_location].find{|s,c| s == "/path/to/my/framework"}[1] - assert_equal "/home/chris/my_compass_project/css/foo", Compass.configuration.to_sass_plugin_options[:template_location].find{|s,c| s == "/home/chris/my_compass_project/../foo"}[1] + engine_opts = Compass.configuration.to_sass_engine_options + + load_paths = load_paths_as_strings(engine_opts[:load_paths]) + + plugin_opts = Compass.configuration.to_sass_plugin_options + + 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 = <