class SequelTest::IntegrationTest

Public Instance Methods

test_should_be_available() click to toggle source
# File test/unit/integrations/sequel_test.rb, line 47
def test_should_be_available
  assert StateMachine::Integrations::Sequel.available?
end
test_should_have_an_integration_name() click to toggle source
# File test/unit/integrations/sequel_test.rb, line 43
def test_should_have_an_integration_name
  assert_equal :sequel, StateMachine::Integrations::Sequel.integration_name
end
test_should_have_defaults() click to toggle source
# File test/unit/integrations/sequel_test.rb, line 59
def test_should_have_defaults
  assert_equal e = {:action => :save}, StateMachine::Integrations::Sequel.defaults
end
test_should_match_if_class_inherits_from_sequel() click to toggle source
# File test/unit/integrations/sequel_test.rb, line 51
def test_should_match_if_class_inherits_from_sequel
  assert StateMachine::Integrations::Sequel.matches?(new_model)
end
test_should_not_have_a_locale_path() click to toggle source
# File test/unit/integrations/sequel_test.rb, line 63
def test_should_not_have_a_locale_path
  assert_nil StateMachine::Integrations::Sequel.locale_path
end
test_should_not_match_if_class_does_not_inherit_from_sequel() click to toggle source
# File test/unit/integrations/sequel_test.rb, line 55
def test_should_not_match_if_class_does_not_inherit_from_sequel
  assert !StateMachine::Integrations::Sequel.matches?(Class.new)
end