diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-07-29 18:13:52 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-07-29 18:13:52 +0530 |
commit | 00979fdb2c00de4e124a7c939b9024f57b4a835e (patch) | |
tree | d5ddf954c5100d465dac8faa306dbf922d85bc4b /activesupport/test/core_ext/array/prepend_append_test.rb | |
parent | 3ac731c4d0de940893f9dc486f6bebc9e3240f5a (diff) | |
download | rails-00979fdb2c00de4e124a7c939b9024f57b4a835e.tar.gz rails-00979fdb2c00de4e124a7c939b9024f57b4a835e.tar.bz2 rails-00979fdb2c00de4e124a7c939b9024f57b4a835e.zip |
Move array test files under array
Diffstat (limited to 'activesupport/test/core_ext/array/prepend_append_test.rb')
-rw-r--r-- | activesupport/test/core_ext/array/prepend_append_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/array/prepend_append_test.rb b/activesupport/test/core_ext/array/prepend_append_test.rb new file mode 100644 index 0000000000..762aa69b2b --- /dev/null +++ b/activesupport/test/core_ext/array/prepend_append_test.rb @@ -0,0 +1,12 @@ +require 'abstract_unit' +require 'active_support/core_ext/array' + +class PrependAppendTest < ActiveSupport::TestCase + def test_append + assert_equal [1, 2], [1].append(2) + end + + def test_prepend + assert_equal [2, 1], [1].prepend(2) + end +end |