Sha256: 066b2eed9c7d826eaaa6803669f46bb50d7f7f452621f406ebd114aabca5dd67

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

require 'test_helper'

class TestToriDefine < Test::Unit::TestCase
  class Dammy
    extend Tori::Define
    tori :test_image
  end

  class Uploader
  end

  test "#tori" do
    assert_respond_to Dammy.new, :test_image
    assert_respond_to Dammy.new, :test_image=
  end

  test "defined methods" do
    dammy = Dammy.new
    assert_instance_of Tori::File, dammy.test_image
    assert_instance_of Uploader, dammy.test_image = Uploader.new
    assert_instance_of Tori::File, dammy.test_image
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tori-0.3.0 test/test_tori_define.rb
tori-0.2.0 test/test_tori_define.rb
tori-0.1.0 test/test_tori_define.rb
tori-0.0.9 test/test_tori_define.rb
tori-0.0.8 test/test_tori_define.rb
tori-0.0.7 test/test_tori_define.rb
tori-0.0.6 test/test_tori_define.rb
tori-0.0.5 test/test_tori_define.rb