Sha256: 10d6f74dc0bc1eb1f7772d925e3b704820d50fcdd43f9876d0da015280882c0c
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mls-0.2.2 | test/units/test_resource.rb |
mls-0.2.1 | test/units/test_resource.rb |