Sha256: 17df47d88232485345c6729c3c9f785a67b341465c154378ab3a9c8a2f7ff6a7
Contents?: true
Size: 379 Bytes
Versions: 14
Compression:
Stored size: 379 Bytes
Contents
require_relative '../../test_helper' class MachineWithHelpersTest < StateMachinesTest def setup @klass = Class.new @machine = StateMachines::Machine.new(@klass) @object = @klass.new end def test_should_throw_exception_with_invalid_scope assert_raises(RUBY_VERSION < '1.9' ? IndexError : KeyError) { @machine.define_helper(:invalid, :park) {} } end end
Version data entries
14 entries across 14 versions & 2 rubygems