class ActiveRecordTest::MachineWithConflictingPredicateTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/integrations/active_record_test.rb, line 341 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/active_record_test.rb, line 343 def state?(*args) true end
test_should_not_define_attribute_predicate()
click to toggle source
# File test/unit/integrations/active_record_test.rb, line 352 def test_should_not_define_attribute_predicate assert @record.state? end