Sha256: c89032119713b9641c35f13bbfc93a1874be72915d533e5a2ee6b863525f9c33
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 Bytes
Contents
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb') require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1') class TestEntity < Test::Unit::TestCase setup do Entity.entity_property_cache = tmpdir.property_cache end module EmptyEntity extend Entity end def test_person person = Person.setup("Miguel", 'es') assert_equal "Hola Miguel", person.salutation person.language = 'en' assert_equal "Hi Miguel", person.salutation end def test_empty refute EmptyEntity.setup("foo").nil? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scout-gear-10.7.4 | test/scout/test_entity.rb |
scout-gear-10.7.3 | test/scout/test_entity.rb |