class DataMapperTest::MachineWithComplexPluralizationScopesTest

Public Instance Methods

setup() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 1885
def setup
  @resource = new_resource
  @machine = StateMachine::Machine.new(@resource, :status)
end
test_should_create_plural_with_scope() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 1894
def test_should_create_plural_with_scope
  assert @resource.respond_to?(:with_statuses)
end
test_should_create_singular_with_scope() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 1890
def test_should_create_singular_with_scope
  assert @resource.respond_to?(:with_status)
end