aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-08-21 00:28:25 -0500
committerJoshua Peek <josh@joshpeek.com>2008-08-21 00:28:25 -0500
commitf388725bd61d8ae246c0c8e42eaec1a2be4620ac (patch)
tree2375c551cb8f4b892471e8618d11785c95ce710b /activesupport/test
parent47cd8b81cc19345aa68323755c78ab03f8176590 (diff)
downloadrails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.tar.gz
rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.tar.bz2
rails-f388725bd61d8ae246c0c8e42eaec1a2be4620ac.zip
Partial revert of 2681685 premature TypeArray abstraction
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/typed_array_test.rb51
1 files changed, 0 insertions, 51 deletions
diff --git a/activesupport/test/typed_array_test.rb b/activesupport/test/typed_array_test.rb
deleted file mode 100644
index 023f3a1b84..0000000000
--- a/activesupport/test/typed_array_test.rb
+++ /dev/null
@@ -1,51 +0,0 @@
-require 'abstract_unit'
-
-class TypedArrayTest < Test::Unit::TestCase
- class StringArray < ActiveSupport::TypedArray
- def self.type_cast(obj)
- obj.to_s
- end
- end
-
- def setup
- @array = StringArray.new
- end
-
- def test_string_array_initialize
- assert_equal ["1", "2", "3"], StringArray.new([1, "2", :"3"])
- end
-
- def test_string_array_append
- @array << 1
- @array << "2"
- @array << :"3"
- assert_equal ["1", "2", "3"], @array
- end
-
- def test_string_array_concat
- @array.concat([1, "2"])
- @array.concat([:"3"])
- assert_equal ["1", "2", "3"], @array
- end
-
- def test_string_array_insert
- @array.insert(0, 1)
- @array.insert(1, "2")
- @array.insert(2, :"3")
- assert_equal ["1", "2", "3"], @array
- end
-
- def test_string_array_push
- @array.push(1)
- @array.push("2")
- @array.push(:"3")
- assert_equal ["1", "2", "3"], @array
- end
-
- def test_string_array_unshift
- @array.unshift(:"3")
- @array.unshift("2")
- @array.unshift(1)
- assert_equal ["1", "2", "3"], @array
- end
-end