Sha256: 31111b289f7ae98b1c1a09dde7701f0fd673cee2d741c2847c38aa4816dea04a

Contents?: true

Size: 696 Bytes

Versions: 1

Compression:

Stored size: 696 Bytes

Contents

require_relative 'test_helper'

class IntegrationTest < BaseTestCase
  def test_should_have_an_integration_name
    assert_equal :mongoid, StateMachines::Integrations::Mongoid.integration_name
  end

  def test_should_match_if_class_includes_mongoid
    assert StateMachines::Integrations::Mongoid.matches?(new_model)
  end

  def test_should_not_match_if_class_does_not_include_mongoid
    assert !StateMachines::Integrations::Mongoid.matches?(Class.new)
  end

  def test_should_have_defaults
    assert_equal({:action => :save}, StateMachines::Integrations::Mongoid.defaults)
  end

  def test_should_have_a_locale_path
    refute_nil StateMachines::Integrations::Mongoid.locale_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
state_machines-mongoid-0.1.0 test/integration_test.rb