Sha256: 55037b75077e0db27e42ebf89b83f34e655a10ae99a34b6da0ed04604aaa210d

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 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
    assert_instance_of Uploader, Dammy.new.test_image = Uploader.new
    assert_instance_of Tori::File, Dammy.new.test_image
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tori-0.0.4 test/test_tori_define.rb