class ActiveRecordTest::MachineWithComplexPluralizationScopesTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/integrations/active_record_test.rb, line 1894 def setup @model = new_model @machine = StateMachine::Machine.new(@model, :status) end
test_should_create_plural_with_scope()
click to toggle source
# File test/unit/integrations/active_record_test.rb, line 1903 def test_should_create_plural_with_scope assert @model.respond_to?(:with_statuses) end
test_should_create_singular_with_scope()
click to toggle source
# File test/unit/integrations/active_record_test.rb, line 1899 def test_should_create_singular_with_scope assert @model.respond_to?(:with_status) end