fix broken test.

This commit is contained in:
Chris Eppstein 2012-03-11 21:48:39 -07:00
parent da6fafee26
commit d1f09e5c33

View File

@ -625,15 +625,22 @@ class SpritesTest < Test::Unit::TestCase
CSS CSS
end end
it "should raise error on filenames that are not valid sass syntax" do it "should not raise error on filenames that are invalid classnames if the selector generation is not used" do
assert_raise(Compass::Error) do
css = render <<-SCSS css = render <<-SCSS
@import "prefix/*.png"; @import "prefix/*.png";
a { a {
@include squares-sprite(20-by-20); @include prefix-sprite("20-by-20");
} }
SCSS SCSS
end assert_correct <<-CSS, css
.prefix-sprite, a {
background: url('/prefix-s949dea513d.png') no-repeat;
}
a {
background-position: 0 -10px;
}
CSS
end end
it "should generate sprite with bad repeat-x dimensions" do it "should generate sprite with bad repeat-x dimensions" do