class DataMapperTest::MachineWithoutDatabaseTest
Public Class Methods
repository()
click to toggle source
Simulate the database not being available entirely
# File test/unit/integrations/data_mapper_test.rb, line 89 def self.repository raise DataObjects::SyntaxError end
Public Instance Methods
setup()
click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 86 def setup @resource = new_resource(false) do # Simulate the database not being available entirely def self.repository raise DataObjects::SyntaxError end end end
test_should_allow_machine_creation()
click to toggle source
# File test/unit/integrations/data_mapper_test.rb, line 95 def test_should_allow_machine_creation assert_nothing_raised { StateMachine::Machine.new(@resource) } end