Sha256: cafc7a4ee5b9c474c2da4912703087384132a949db6d625aaa1d32f6c56ef716

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

require 'test_helper'

class TestToriDefine < Test::Unit::TestCase
  class Dammy
    extend Tori::Define
    tori :test_image
    def id
      "dammy"
    end
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tori-0.0.2 test/test_tori_method_definition.rb
tori-0.0.1 test/test_tori_method_definition.rb