aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object/itself_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/core_ext/object/itself_test.rb')
-rw-r--r--activesupport/test/core_ext/object/itself_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/object/itself_test.rb b/activesupport/test/core_ext/object/itself_test.rb
new file mode 100644
index 0000000000..0885fe91e3
--- /dev/null
+++ b/activesupport/test/core_ext/object/itself_test.rb
@@ -0,0 +1,9 @@
+require 'abstract_unit'
+require 'active_support/core_ext/object'
+
+class Object::SelfTest < ActiveSupport::TestCase
+ test 'self returns self' do
+ object = 'fun'
+ assert_equal object, object.itself
+ end
+end