Sha256: b091d1cf5da99826b3f85812c91ffb68a04c77be06f2f460d92f8db0502ebadd

Contents?: true

Size: 579 Bytes

Versions: 104

Compression:

Stored size: 579 Bytes

Contents

require 'test_helper'

class MyModel
  include MLS::Model

end

class TestModel < ::Test::Unit::TestCase

  def test_instance_methods
    model = MyModel.new

    assert model.respond_to?(:property)
    assert model.respond_to?(:properties)
    assert model.respond_to?(:property_module)
    assert model.respond_to?(:create_reader_for)
    assert model.respond_to?(:create_writer_for)
    assert model.respond_to?(:model_name)
    assert model.respond_to?(:param_key)
    assert model.respond_to?(:root_element)
    assert model.respond_to?(:collection_root_element)
  end

end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
mls-0.2.21 test/units/test_model.rb
mls-0.2.20 test/units/test_model.rb
mls-0.2.19 test/units/test_model.rb
mls-0.2.18 test/units/test_model.rb
mls-0.2.17 test/units/test_model.rb
mls-0.2.16 test/units/test_model.rb
mls-0.2.15 test/units/test_model.rb
mls-0.2.14 test/units/test_model.rb
mls-0.2.13 test/units/test_model.rb
mls-0.2.12 test/units/test_model.rb
mls-0.2.11 test/units/test_model.rb
mls-0.2.9.1 test/units/test_model.rb
mls-0.2.10 test/units/test_model.rb
mls-0.2.9 test/units/test_model.rb
mls-0.2.8.2 test/units/test_model.rb
mls-0.2.8.1 test/units/test_model.rb
mls-0.2.8 test/units/test_model.rb
mls-0.2.7 test/units/test_model.rb
mls-0.2.6 test/units/test_model.rb
mls-0.2.5 test/units/test_model.rb