test/integration_test.rb in sprite-factory-1.7 vs test/integration_test.rb in sprite-factory-1.7.1

- old
+ new

@@ -58,10 +58,16 @@ integration_test(REGULAR_PATH, :output => output_path('regular.nocomments'), :selector => 'img.nocomments_', :nocomments => true) end + def test_generate_regular_sprite_with_exclude_array + integration_test(REGULAR_PATH, :output => output_path('regular.filtered'), + :selector => 'img.filtered_', + :exclude => ['regular1.PNG', 'regular5.PNG']) + end + #---------------------------------------------------------------------------- def test_generate_irregular_sprite integration_test(IRREGULAR_PATH) end @@ -107,9 +113,15 @@ def test_generate_irregular_sprite_with_sassy_style integration_test(IRREGULAR_PATH, :output => output_path('irregular.sassy'), :selector => 'img.sassy_', :style => :sass) + end + + def test_generate_irregular_sprite_with_exclude_array + integration_test(IRREGULAR_PATH, :output => output_path('irregular.filtered'), + :selector => 'img.filtered_', + :exclude => ['irregular1.png', 'irregular5.png']) end #---------------------------------------------------------------------------- def test_generate_custom_sprite