test/test_PNGCrush.rb in sitefuel-0.0.0b vs test/test_PNGCrush.rb in sitefuel-0.1.0a

- old
+ new

@@ -1,10 +1,10 @@ # -# File:: test_PNGCrush.m -# Author:: wkm -# Copyright:: 2009 -# License:: GPL +# File:: test_PNGCrush.rb +# Author:: wkm +# Copyright:: 2009, Zanoccio LLC. +# License:: GPL version 2.0 (see LICENSE.rb) # # Unit tests for the PNGCrush wrapper. # $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') @@ -15,11 +15,11 @@ include SiteFuel::External class TestPNGCrush < Test::Unit::TestCase include ExternalProgramTestCase - SAMPLE_IMAGE = 'test/test_images/sample_png01.png' + SAMPLE_IMAGE = 'test/images/sample_png01.png' def test_option # test that we have all options assert PNGCrush.option?(:version) assert PNGCrush.option?(:brute) @@ -32,25 +32,25 @@ # assert_equal '-version', PNGCrush.option_template(:version) end def test_brute # test the crush capability against one of the test files - new_image = './test/test_images/tmp-sample_png01-brute.png' + new_image = './test/images/tmp-sample_png01-brute.png' PNGCrush.brute SAMPLE_IMAGE, new_image assert File.size(SAMPLE_IMAGE) > File.size(new_image) end def test_quick - new_image = './test/test_images/tmp-sample_png01-quick.png' + new_image = './test/images/tmp-sample_png01-quick.png' PNGCrush.quick SAMPLE_IMAGE, new_image assert File.size(SAMPLE_IMAGE) > File.size(new_image) end def test_chainsaw - new_image = './test/test_images/tmp-sample_png01-chainsaw.png' + new_image = './test/images/tmp-sample_png01-chainsaw.png' PNGCrush.chainsaw SAMPLE_IMAGE, new_image assert File.size(SAMPLE_IMAGE) > File.size(new_image) end