class PrependAppendTest

Public Instance Methods

test_append() click to toggle source
# File activesupport/test/core_ext/array/prepend_append_test.rb, line 7
def test_append
  assert_equal [1, 2], [1].append(2)
end
test_prepend() click to toggle source
# File activesupport/test/core_ext/array/prepend_append_test.rb, line 11
def test_prepend
  assert_equal [2, 1], [1].prepend(2)
end