diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 16:00:22 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 16:20:18 -0300 |
commit | 758e223c45fdd41bdb397e3830553d13686c8dc1 (patch) | |
tree | 9cf66d46db27b03674134d83adec819d2bd277aa /activesupport/test/core_ext | |
parent | 065c20890a11a940e78078fc1c6488a655f41420 (diff) | |
download | rails-758e223c45fdd41bdb397e3830553d13686c8dc1.tar.gz rails-758e223c45fdd41bdb397e3830553d13686c8dc1.tar.bz2 rails-758e223c45fdd41bdb397e3830553d13686c8dc1.zip |
Remove Struct#to_h backport
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/struct_test.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/activesupport/test/core_ext/struct_test.rb b/activesupport/test/core_ext/struct_test.rb deleted file mode 100644 index 0dff7b32d2..0000000000 --- a/activesupport/test/core_ext/struct_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'abstract_unit' -require 'active_support/core_ext/struct' - -class StructExt < ActiveSupport::TestCase - def test_to_h - x = Struct.new(:foo, :bar) - z = x.new(1, 2) - assert_equal({ foo: 1, bar: 2 }, z.to_h) - end -end |