From d1f09e5c33031993f44c6ef7a3f37ca66f7c842f Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 11 Mar 2012 21:48:39 -0700 Subject: [PATCH] fix broken test. --- test/integrations/sprites_test.rb | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/test/integrations/sprites_test.rb b/test/integrations/sprites_test.rb index 1d889fa6..97206778 100644 --- a/test/integrations/sprites_test.rb +++ b/test/integrations/sprites_test.rb @@ -625,15 +625,22 @@ class SpritesTest < Test::Unit::TestCase CSS end - it "should raise error on filenames that are not valid sass syntax" do - assert_raise(Compass::Error) do - css = render <<-SCSS - @import "prefix/*.png"; - a { - @include squares-sprite(20-by-20); - } - SCSS - end + it "should not raise error on filenames that are invalid classnames if the selector generation is not used" do + css = render <<-SCSS + @import "prefix/*.png"; + a { + @include prefix-sprite("20-by-20"); + } + SCSS + assert_correct <<-CSS, css + .prefix-sprite, a { + background: url('/prefix-s949dea513d.png') no-repeat; + } + + a { + background-position: 0 -10px; + } + CSS end it "should generate sprite with bad repeat-x dimensions" do