test/test_zyps.rb in zyps-0.5.1 vs test/test_zyps.rb in zyps-0.5.2
- old
+ new
@@ -194,11 +194,11 @@
end
#A condition that is false unless actor and target have specific names.
class NameCondition < Condition
- def test(actor, target)
+ def met?(actor, target)
return true if actor.name == '1' and target.name == '2'
end
end
def test_conditions
@@ -476,16 +476,16 @@
#TODO: Rewrite to pass environment.
class TestBehavior < Test::Unit::TestCase
#Always true.
class TrueCondition < Condition
- def test(actor, target)
+ def met?(actor, target)
true
end
end
#Always false.
class FalseCondition < Condition
- def test(actor, target)
+ def met?(actor, target)
false
end
end
\ No newline at end of file