Changeset 191
- Timestamp:
- 11/20/04 01:31:55 (4 years ago)
- Location:
- branches/simplest-thing/tests
- Files:
-
- 3 modified
-
event.tests.rb (modified) (1 diff)
-
locus.tests.rb (modified) (1 diff)
-
verb.tests.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simplest-thing/tests/event.tests.rb
r188 r191 49 49 @entity = TestEntity::new 50 50 @locus = TestLocus::new 51 @verb = TestVerb:: new51 @verb = TestVerb::instance 52 52 super 53 53 end -
branches/simplest-thing/tests/locus.tests.rb
r180 r191 36 36 args[:instigator] ||= FaerieMUD::Locus::new 37 37 args[:origin] ||= args[:instigator] 38 args[:verb] ||= FaerieMUD::Verb:: new38 args[:verb] ||= FaerieMUD::Verb::instance 39 39 super( args ) 40 40 end -
branches/simplest-thing/tests/verb.tests.rb
r181 r191 45 45 46 46 # (For concrete classes) 47 assert_raises( NoMethodError ) { 48 FaerieMUD::Verb::new 49 } 47 50 assert_nothing_raised { 48 rval = FaerieMUD::Verb:: new51 rval = FaerieMUD::Verb::instance 49 52 } 50 53 assert_instance_of FaerieMUD::Verb, rval … … 58 61 59 62 derivClass = Class::new( FaerieMUD::Verb ) 60 derivObj = derivClass::new 63 assert_raises( NoMethodError ) { derivClass::new } 64 derivObj = derivClass::instance 61 65 62 66 # Should require an instigator and an origin
