Sha256: 9e9d53eb2cdbb73417dca588bd9af6ec5fdb939fb50448f358736e4868d41c5e

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 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?(:attribute)
    assert model.respond_to?(:attributes)
    assert model.respond_to?(:attribute_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

12 entries across 12 versions & 1 rubygems

Version Path
mls-1.1.3 test/units/test_model.rb
mls-1.1.2 test/units/test_model.rb
mls-1.1.1 test/units/test_model.rb
mls-1.1.0 test/units/test_model.rb
mls-1.0.0 test/units/test_model.rb
mls-0.14.0 test/units/test_model.rb
mls-0.13.0 test/units/test_model.rb
mls-0.12.5 test/units/test_model.rb
mls-0.12.4 test/units/test_model.rb
mls-0.12.2 test/units/test_model.rb
mls-0.12.3 test/units/test_model.rb
mls-0.12.1 test/units/test_model.rb