test/test_JPEGTran.rb in sitefuel-0.0.0b vs test/test_JPEGTran.rb in sitefuel-0.1.0a
- old
+ new
@@ -1,10 +1,10 @@
#
# File:: test_JPEGTran.rb
# Author:: wkm
-# Copyright:: 2009
-# License:: GPL
+# Copyright:: 2009, Zanoccio LLC.
+# License:: GPL version 2.0 (see LICENSE.rb)
#
# Unit tests for the JPEGTran wrapper.
#
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
@@ -15,11 +15,11 @@
include SiteFuel::External
class TestJPEGTran < Test::Unit::TestCase
include ExternalProgramTestCase
- SAMPLE_IMAGE = 'test/test_images/sample_jpg01.jpg'
+ SAMPLE_IMAGE = 'test/images/sample_jpg01.jpg'
def test_options
assert JPEGTran.option?(:version)
assert JPEGTran.option?(:copy)
assert JPEGTran.option?(:optimize)
@@ -29,10 +29,10 @@
assert_equal '-optimize', JPEGTran.option_template(:optimize)
end
def test_lossless
- new_image = 'test/test_images/tmp-sample_jpg01-lossless.jpg'
+ new_image = 'test/images/tmp-sample_jpg01-lossless.jpg'
JPEGTran.compress_losslessly SAMPLE_IMAGE, new_image
assert File.size(SAMPLE_IMAGE) > File.size(new_image)
end