class DataMapperTest::MachineWithConflictingPredicateTest

Public Instance Methods

setup() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 312
def setup
  @resource = new_resource do
    def state?(*args)
      true
    end
  end
  
  @machine = StateMachine::Machine.new(@resource)
  @record = @resource.new
end
state?(*args) click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 314
def state?(*args)
  true
end
test_should_not_define_attribute_predicate() click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 323
def test_should_not_define_attribute_predicate
  assert @record.state?
end