class IntegrationFinderTest
Public Instance Methods
test_should_find_active_model()
click to toggle source
# File test/unit/integrations_test.rb, line 37 def test_should_find_active_model assert_equal StateMachine::Integrations::ActiveModel, StateMachine::Integrations.find_by_name(:active_model) end
test_should_find_active_record()
click to toggle source
# File test/unit/integrations_test.rb, line 41 def test_should_find_active_record assert_equal StateMachine::Integrations::ActiveRecord, StateMachine::Integrations.find_by_name(:active_record) end
test_should_find_base()
click to toggle source
# File test/unit/integrations_test.rb, line 33 def test_should_find_base assert_equal StateMachine::Integrations::Base, StateMachine::Integrations.find_by_name(:base) end
test_should_find_data_mapper()
click to toggle source
# File test/unit/integrations_test.rb, line 45 def test_should_find_data_mapper assert_equal StateMachine::Integrations::DataMapper, StateMachine::Integrations.find_by_name(:data_mapper) end
test_should_find_mongo_mapper()
click to toggle source
# File test/unit/integrations_test.rb, line 49 def test_should_find_mongo_mapper assert_equal StateMachine::Integrations::MongoMapper, StateMachine::Integrations.find_by_name(:mongo_mapper) end
test_should_find_sequel()
click to toggle source
# File test/unit/integrations_test.rb, line 53 def test_should_find_sequel assert_equal StateMachine::Integrations::Sequel, StateMachine::Integrations.find_by_name(:sequel) end
test_should_raise_an_exception_if_invalid()
click to toggle source
# File test/unit/integrations_test.rb, line 57 def test_should_raise_an_exception_if_invalid exception = assert_raise(StateMachine::IntegrationNotFound) { StateMachine::Integrations.find_by_name(:invalid) } assert_equal ':invalid is an invalid integration', exception.message end