fixed tests

This commit is contained in:
Scott Davis 2011-06-19 12:26:38 -04:00
parent e0abb38e2f
commit 1178c940bb
4 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ end
module SpriteHelper
URI = "selectors/*.png"
def test_sprite_map(options)
def sprite_map_test(options)
importer = Compass::SpriteImporter.new
path, name = Compass::SpriteImporter.path_and_name(URI)
sprite_names = Compass::SpriteImporter.sprite_names(URI)

View File

@ -34,7 +34,7 @@ class SpritesImageTest < Test::Unit::TestCase
let(:digest) { Digest::MD5.file(sprite_path).hexdigest }
let(:image) { Compass::SassExtensions::Sprites::Image.new(test_sprite_map(options), File.join(sprite_filename), options)}
let(:image) { Compass::SassExtensions::Sprites::Image.new(sprite_map_test(options), File.join(sprite_filename), options)}
test 'initialize' do
assert_equal sprite_name, image.name

View File

@ -43,7 +43,7 @@ class ImporterTest < Test::Unit::TestCase
end
test "sass options should contain options" do
opts = Compass::SpriteImporter.sass_options(name, @importer, options)
opts = Compass::SpriteImporter.sass_options('foo', @importer, options)
assert_equal 'bar', opts[:foo]
end

View File

@ -13,7 +13,7 @@ class SpriteMapTest < Test::Unit::TestCase
Compass.add_configuration(config)
Compass.configure_sass_plugin!
@options = {'cleanup' => Sass::Script::Bool.new(true)}
@base = test_sprite_map(@options)
@base = sprite_map_test(@options)
end
def teardown
@ -79,7 +79,7 @@ class SpriteMapTest < Test::Unit::TestCase
file_to_remove = File.join(@images_tmp_path, 'selectors', 'ten-by-ten.png')
FileUtils.rm file_to_remove
assert !File.exists?(file_to_remove), "Failed to remove sprite file"
@base = test_sprite_map(@options)
@base = sprite_map_test(@options)
@base.generate
assert !File.exists?(file), "Sprite file did not get removed"
end