Sha256: 569393e9927e053852255d1c2d1ef119ada0847ca2ca116c71ce7a1cdbd22750

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

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

describe "InvalidEvents" do

  it "should get InvalidContext when requiring" do
    lambda {
      require File.join( File.dirname(__FILE__), "..", "examples", "invalid_events" )
    }.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_events_spec.rb
dm-is-state_machine-0.9.6 spec/integration/invalid_events_spec.rb
dm-is-state_machine-0.9.7 spec/integration/invalid_events_spec.rb
dm-is-state_machine-0.9.11 spec/integration/invalid_events_spec.rb
dm-is-state_machine-0.9.4 spec/integration/invalid_events_spec.rb
dm-is-state_machine-0.9.5 spec/integration/invalid_events_spec.rb
dm-is-state_machine-0.9.8 spec/integration/invalid_events_spec.rb
dm-is-state_machine-0.9.9 spec/integration/invalid_events_spec.rb