Sha256: 2c5f167849a183da5dfe97743031b6f4da92375c21546a7fab561345a2e626ff

Contents?: true

Size: 444 Bytes

Versions: 14

Compression:

Stored size: 444 Bytes

Contents

require File.dirname(__FILE__) + '/../../test/test_helper'

class FleximageImageProxyTest < Test::Unit::TestCase
  def test_should_have_a_width
    p = PhotoBare.create(:image_file => files(:photo))
    p.operate do |image|
      assert_equal 768, image.width
    end
  end
  
  def test_should_have_a_height
    p = PhotoBare.create(:image_file => files(:photo))
    p.operate do |image|
      assert_equal 1024, image.height
    end
  end
end

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
tvdeyen-fleximage-1.2.0 test/unit/image_proxy_test.rb
tvdeyen-fleximage-1.1.1 test/unit/image_proxy_test.rb
tvdeyen-fleximage-1.0.9 test/unit/image_proxy_test.rb
tvdeyen-fleximage-1.0.8 test/unit/image_proxy_test.rb
tvdeyen-fleximage-1.0.7 test/unit/image_proxy_test.rb
robinboening-fleximage-1.0.6 test/unit/image_proxy_test.rb
robinboening-fleximage-1.0.4 test/unit/image_proxy_test.rb
tvdeyen-fleximage-1.0.5 test/unit/image_proxy_test.rb
fleximage-1.0.4 test/unit/image_proxy_test.rb
dougmcbride-fleximage-1.0.3 test/unit/image_proxy_test.rb
fleximage-1.0.3 test/unit/image_proxy_test.rb
fleximage-1.0.2 test/unit/image_proxy_test.rb
fleximage-1.0.1 test/unit/image_proxy_test.rb
fleximage-1.0.0 test/unit/image_proxy_test.rb