diff --git a/test/test_helper.rb b/test/test_helper.rb index df9edc22..a4146cc6 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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) diff --git a/test/units/sprites/image_test.rb b/test/units/sprites/image_test.rb index 8fb80ff1..6caef387 100644 --- a/test/units/sprites/image_test.rb +++ b/test/units/sprites/image_test.rb @@ -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 diff --git a/test/units/sprites/importer_test.rb b/test/units/sprites/importer_test.rb index 571455d2..f9b0d79d 100644 --- a/test/units/sprites/importer_test.rb +++ b/test/units/sprites/importer_test.rb @@ -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 diff --git a/test/units/sprites/sprite_map_test.rb b/test/units/sprites/sprite_map_test.rb index 5c488a59..8abb762e 100644 --- a/test/units/sprites/sprite_map_test.rb +++ b/test/units/sprites/sprite_map_test.rb @@ -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