diff --git a/Gemfile.lock b/Gemfile.lock index 2b1efed3..6a3cdb66 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - compass (0.12.alpha.0.7334285) + compass (0.12.alpha.0.bc3334b) chunky_png (~> 1.2) fssm (>= 0.2.7) sass (~> 3.1) diff --git a/test/integrations/sprites_test.rb b/test/integrations/sprites_test.rb index ca118b6a..1b630f41 100644 --- a/test/integrations/sprites_test.rb +++ b/test/integrations/sprites_test.rb @@ -56,6 +56,10 @@ class SpritesTest < Test::Unit::TestCase " #{css.gsub('@charset "UTF-8";', '').gsub(/\n/, "\n ").strip}\n" end + def clean(string) + string.gsub("\n", '').gsub(' ', '') + end + it "should generate sprite classes" do css = render <<-SCSS @import "squares/*.png"; @@ -729,7 +733,7 @@ class SpritesTest < Test::Unit::TestCase background-position: 0 0; } CSS - assert_correct css.gsub("\n", '').gsub(' ', ''), other_css.gsub("\n", '').gsub(' ', '') + assert_correct clean(css), clean(other_css) end it "should allow use of demension functions" do @@ -751,7 +755,7 @@ class SpritesTest < Test::Unit::TestCase width:22px; } CSS - assert_correct css.gsub("\n", '').gsub(' ', ''), other_css.gsub("\n", '').gsub(' ', '') + assert_correct clean(css), clean(other_css) end it "should replace text with images and dimensions using sprites" do @@ -788,7 +792,7 @@ class SpritesTest < Test::Unit::TestCase background-repeat:no-repeat; } CSS - assert_correct css.gsub("\n", '').gsub(' ', ''), other_css.gsub("\n", '').gsub(' ', '') + assert_correct clean(css), clean(other_css) end it "should inline the sprite file" do @@ -807,7 +811,7 @@ class SpritesTest < Test::Unit::TestCase background-position:0 -10px; } CSS - assert_correct css.gsub("\n", '').gsub(' ', ''), other_css.gsub("\n", '').gsub(' ', '') + assert_correct clean(css), clean(other_css) end end