Sha256: f60b14c21eda18f4ddee5f4f891e5d6d2cada73a4aca1a858d02aa03cf33c9c1
Contents?: true
Size: 611 Bytes
Versions: 4
Compression:
Stored size: 611 Bytes
Contents
require 'helper' require 'chocbomb/tools/images' class TestChocbomb < Test::Unit::TestCase JPG_FILE = File.join(File.dirname(File.expand_path(__FILE__)), 'ressources', 'default_background.jpg') PNG_FILE = File.join(File.dirname(File.expand_path(__FILE__)), 'ressources', 'default_background.png') def test_jpg_image_size width, height = ChocBomb::Tools::Images.size(JPG_FILE) assert_equal(500, width) assert_equal(400, height) end def test_png_image_size width, height = ChocBomb::Tools::Images.size(PNG_FILE) assert_equal(500, width) assert_equal(400, height) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chocbomb-0.0.3 | test/test_chocbomb.rb |
chocbomb-0.0.2 | test/test_chocbomb.rb |
chocbomb-0.0.1 | test/test_chocbomb.rb |
chocbomb-0.0.0 | test/test_chocbomb.rb |