Sha256: 4464aca6db297b061a651e2d087f217c4717f65de1b2fe66f1f2e1f493230662

Contents?: true

Size: 639 Bytes

Versions: 8

Compression:

Stored size: 639 Bytes

Contents

require 'pathname'
require Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'

describe "InvalidTransitions1" do

  it "should get InvalidContext when requiring" do
    lambda {
      require File.join( File.dirname(__FILE__), "..", "examples", "invalid_transitions_1" )
    }.should raise_error(DataMapper::Is::StateMachine::InvalidContext)
  end

end

describe "InvalidTransitions2" do

  it "should get InvalidContext when requiring" do
    lambda {
      require File.join( File.dirname(__FILE__), "..", "examples", "invalid_transitions_2" )
    }.should raise_error(DataMapper::Is::StateMachine::InvalidContext)
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dm-is-state_machine-0.9.10 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.7 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.11 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.4 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.5 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.6 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.8 spec/integration/invalid_transitions_spec.rb
dm-is-state_machine-0.9.9 spec/integration/invalid_transitions_spec.rb