Sha256: b126daf1386cfed16b0c8de7392eebfb73c521eea0e9f9045348ee2952d09ce2

Contents?: true

Size: 725 Bytes

Versions: 102

Compression:

Stored size: 725 Bytes

Contents

require 'test_helper'

class MyResource < MLS::Resource; end

class TestResource < ::Test::Unit::TestCase

  def test_attr_readers
    resource = MyResource.new

    assert resource.respond_to?(:errors)
    assert resource.respond_to?(:persisted)
  end

  def test_instance_methods
    resource = MyResource.new

    assert resource.respond_to?(:new_record?)
    assert resource.respond_to?(:persisted?)
    assert resource.respond_to?(:save)

    assert resource.respond_to?(:properties)
    assert resource.respond_to?(:set_default_values)
    assert resource.respond_to?(:update_attributes)

    assert resource.respond_to?(:to_hash)
    assert resource.respond_to?(:to_key)
  end

  test 'save returns true || false'
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
mls-0.11.3 test/units/test_resource.rb
mls-0.11.2 test/units/test_resource.rb
mls-0.11.1 test/units/test_resource.rb
mls-0.11.0 test/units/test_resource.rb
mls-0.9.9 test/units/test_resource.rb
mls-0.9.8 test/units/test_resource.rb
mls-0.9.6 test/units/test_resource.rb
mls-0.9.5 test/units/test_resource.rb
mls-0.9.4 test/units/test_resource.rb
mls-0.9.3 test/units/test_resource.rb
mls-0.9.2 test/units/test_resource.rb
mls-0.9.1 test/units/test_resource.rb
mls-0.9.0 test/units/test_resource.rb
mls-0.8.2 test/units/test_resource.rb
mls-0.8.1 test/units/test_resource.rb
mls-0.8.0 test/units/test_resource.rb
mls-0.7.2 test/units/test_resource.rb
mls-0.7.1 test/units/test_resource.rb
mls-0.7.0 test/units/test_resource.rb
mls-0.6.7 test/units/test_resource.rb