aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/json/encoding_test_cases.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/json/encoding_test_cases.rb')
-rw-r--r--activesupport/test/json/encoding_test_cases.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/test/json/encoding_test_cases.rb b/activesupport/test/json/encoding_test_cases.rb
index 8eac246937..7e4775cec8 100644
--- a/activesupport/test/json/encoding_test_cases.rb
+++ b/activesupport/test/json/encoding_test_cases.rb
@@ -1,4 +1,8 @@
require "bigdecimal"
+require "date"
+require "time"
+require "pathname"
+require "uri"
module JSONTest
class Foo
@@ -23,7 +27,7 @@ module JSONTest
end
end
- class MyStruct < Struct.new(:name, :value)
+ MyStruct = Struct.new(:name, :value) do
def initialize(*)
@unused = "unused instance variable"
super