test/test_characterizable.rb in characterizable-0.0.14 vs test/test_characterizable.rb in characterizable-0.0.15

- old
+ new

@@ -408,6 +408,21 @@ has :make end end end end + + # this used to cause infinite loops + should 'not let two characteristics trump each other' do + assert_raises ::Characterizable::CyclicalTrumping do + class Universe + include Characterizable + attr_accessor :matter + attr_accessor :antimatter + characterize do + has :matter, :trumps => :antimatter + has :antimatter, :trumps => :matter + end + end + end + end end