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