Sha256: 2f0f564c128391cfb6f19af52ff584bca5a2231ab1136e8325e27e25a2a02139

Contents?: true

Size: 390 Bytes

Versions: 3

Compression:

Stored size: 390 Bytes

Contents

require_relative 'test_helper'

class MachineWithComplexPluralizationScopesTest < BaseTestCase
  def setup
    @model = new_model
    @machine = StateMachines::Machine.new(@model, :status)
  end

  def test_should_create_singular_with_scope
    assert @model.respond_to?(:with_status)
  end

  def test_should_create_plural_with_scope
    assert @model.respond_to?(:with_statuses)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
state_machines-mongoid-0.2.0 test/machine_with_complex_pluralization_scopes_test.rb
state_machines-mongoid-0.1.1 test/machine_with_complex_pluralization_scopes_test.rb
state_machines-mongoid-0.1.0 test/machine_with_complex_pluralization_scopes_test.rb