class MongoMapperTest::MachineWithConflictingPredicateTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 270 def setup @model = new_model do def state?(*args) true end end @machine = StateMachine::Machine.new(@model) @record = @model.new end
state?(*args)
click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 272 def state?(*args) true end
test_should_not_define_attribute_predicate()
click to toggle source
# File test/unit/integrations/mongo_mapper_test.rb, line 281 def test_should_not_define_attribute_predicate assert @record.state? end