Sha256: 02aae952383edc82b5dd514ea02f2465bfb0707a48193a550abe4a380692ddb4

Contents?: true

Size: 472 Bytes

Versions: 14

Compression:

Stored size: 472 Bytes

Contents

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

class FleximageAbstractTest < Test::Unit::TestCase
  
  def test_should_generate_a_default_image
    p = Abstract.new
    assert p.save
    
    assert_equal 320, p.load_image.columns
    assert_equal 240, p.load_image.rows
    assert_color [65535, 0, 0], '160x120', p
  end
  
  def test_should_delete_an_abstract_model
    p = Abstract.new
    assert p.save
    assert_nothing_raised { p.destroy }
  end
  
end

Version data entries

14 entries across 14 versions & 4 rubygems

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