Class: ArrayTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/test/extensions/array.rb

Instance Method Summary collapse

Instance Method Details

#test_afterObject



4
5
6
7
8
9
10
11
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/extensions/array.rb', line 4

def test_after
  @sequence = ['a', 'b', 'c']

  assert_equal 'b', @sequence.after('a')
  assert_equal 'c', @sequence.after('b')
  assert_equal 'a', @sequence.after('c')
  assert_equal nil, @sequence.after('d')
end