test/sequence_test.rb in aub-machine-1.0.1 vs test/sequence_test.rb in aub-machine-1.0.2
- old
+ new
@@ -1,9 +1,13 @@
require File.dirname(__FILE__) + '/test_helper.rb'
class SequenceTest < Test::Unit::TestCase
+ def setup
+ Machine.sequences.clear
+ end
+
should 'allow definition of sequences' do
Machine.sequence :thing do
end
assert_equal 1, Machine.sequences.size
end
@@ -34,6 +38,6 @@
should 'raise an exception when calling a nonexistent sequence' do
assert_raises MachineNotFoundError do
Machine.next(:who)
end
end
-end
\ No newline at end of file
+end