Sha256: af9e1504ca4bba735e1bb3c831751be87b73e0f3c1d74d2637e3a417b7a8a66c
Contents?: true
Size: 545 Bytes
Versions: 31
Compression:
Stored size: 545 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class InvalidEventTest < Test::Unit::TestCase def setup @object = Object.new @invalid_event = StateMachine::InvalidEvent.new(@object, :invalid) end def test_should_have_an_object assert_equal @object, @invalid_event.object end def test_should_have_an_event assert_equal :invalid, @invalid_event.event end def test_should_generate_a_message assert_equal ':invalid is an unknown state machine event', @invalid_event.message end end
Version data entries
31 entries across 31 versions & 10 rubygems