Spelling.
This commit is contained in:
parent
69cf947cab
commit
47572acc50
@ -10,6 +10,10 @@ class ImporterTest < Test::Unit::TestCase
|
|||||||
@importer = Compass::SpriteImporter.new(:uri => URI, :options => options)
|
@importer = Compass::SpriteImporter.new(:uri => URI, :options => options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def teardown
|
||||||
|
Compass.reset_configuration!
|
||||||
|
end
|
||||||
|
|
||||||
def options
|
def options
|
||||||
{:foo => 'bar'}
|
{:foo => 'bar'}
|
||||||
end
|
end
|
||||||
@ -46,21 +50,17 @@ class ImporterTest < Test::Unit::TestCase
|
|||||||
assert_equal 'bar', @importer.sass_options[:foo]
|
assert_equal 'bar', @importer.sass_options[:foo]
|
||||||
end
|
end
|
||||||
|
|
||||||
test "should fail givin bad sprite extensions" do
|
test "should fail given bad sprite extensions" do
|
||||||
@images_src_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images')
|
@images_src_path = File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'sprites', 'public', 'images')
|
||||||
file = StringIO.new("images_path = #{@images_src_path.inspect}\n")
|
file = StringIO.new("images_path = #{@images_src_path.inspect}\n")
|
||||||
Compass.add_configuration(file, "sprite_config")
|
Compass.add_configuration(file, "sprite_config")
|
||||||
importer = Compass::SpriteImporter.new(:uri => 'bad_extensions/*.jpg', :options => options)
|
importer = Compass::SpriteImporter.new(:uri => 'bad_extensions/*.jpg', :options => options)
|
||||||
begin
|
begin
|
||||||
importer.sass_engine
|
importer.sass_engine
|
||||||
assert false, "Somthing happened an invalid sprite file made it past validation"
|
assert false, "An invalid sprite file made it past validation."
|
||||||
rescue Compass::Error => e
|
rescue Compass::Error => e
|
||||||
assert e.message.include?('.png')
|
assert e.message.include?('.png')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def taredown
|
|
||||||
Compass.reset_configuration!
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user