Sha256: 5ffafc804b7a03f79f3a9a0a7f84343523672474bdf347ee10f592204c605fac

Contents?: true

Size: 578 Bytes

Versions: 13

Compression:

Stored size: 578 Bytes

Contents

require 'test_helper'

class ImageVersionTest < Zena::Unit::TestCase

  def test_set_image_text
    without_files('data/test/jpg') do
      login(:ant)
      img = secure!(Image) { Image.create( :parent_id=>nodes_id(:cleanWater),
                                          :inherit => 1,
                                          :name=>'birdy',
                                          :c_file => uploaded_jpg('bird.jpg')) }
      assert_kind_of Image , img
      assert ! img.new_record? , "Not a new record"
      assert_equal "!#{img[:zip]}!", img.v_text
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-0.16.9 test/unit/image_version_test.rb
zena-0.16.8 test/unit/image_version_test.rb
zena-0.16.7 test/unit/image_version_test.rb
zena-0.16.6 test/unit/image_version_test.rb
zena-0.16.5 test/unit/image_version_test.rb
zena-0.16.4 test/unit/image_version_test.rb
zena-0.16.3 test/unit/image_version_test.rb
zena-0.16.2 test/unit/image_version_test.rb
zena-0.16.1 test/unit/image_version_test.rb
zena-0.16.0 test/unit/image_version_test.rb
zena-0.15.2 test/unit/image_version_test.rb
zena-0.15.1 test/unit/image_version_test.rb
zena-0.15.0 test/unit/image_version_test.rb