Added a test to ensure importing of numeric filenames for sprites works

This commit is contained in:
Zachary Anker 2012-02-27 09:15:08 -08:00
parent cb80f1f371
commit 15b94d0ed0
2 changed files with 17 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -457,7 +457,23 @@ class SpritesTest < Test::Unit::TestCase
}
CSS
end
it "should import sprites with numeric filenames via #738" do
css = render <<-SCSS
@import "numeric/*.png";
@include all-numeric-sprites;
SCSS
assert_correct css, <<-CSS
.numeric-sprite, .numeric-200 {
background: url('/numeric-saa92d65a89.png') no-repeat;
}
.numeric-200 {
background-position: 0 0;
}
CSS
end
it "should calculate corret sprite demsions when givin spacing via issue#253" do
css = render <<-SCSS
$squares-spacing: 10px;