Added a test to ensure importing of numeric filenames for sprites works
This commit is contained in:
parent
cb80f1f371
commit
15b94d0ed0
BIN
test/fixtures/sprites/public/images/numeric/200.png
vendored
Normal file
BIN
test/fixtures/sprites/public/images/numeric/200.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -458,6 +458,22 @@ class SpritesTest < Test::Unit::TestCase
|
|||||||
CSS
|
CSS
|
||||||
end
|
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
|
it "should calculate corret sprite demsions when givin spacing via issue#253" do
|
||||||
css = render <<-SCSS
|
css = render <<-SCSS
|
||||||
$squares-spacing: 10px;
|
$squares-spacing: 10px;
|
||||||
|
Loading…
Reference in New Issue
Block a user