Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

object_and_class_ext_test warnings removed

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit ebf300f41b71d05f9d64d0ba71978158f9c797a3 1 parent b3d32a5
@spastorino spastorino authored jeremy committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/object_and_class_ext_test.rb
View
4 activesupport/test/core_ext/object_and_class_ext_test.rb
@@ -171,7 +171,7 @@ def test_duck_typing
def test_metaclass
string = "Hello"
- string.metaclass.instance_eval do
+ string.singleton_class.instance_eval do
define_method(:foo) { "bar" }
end
assert_equal "bar", string.foo
@@ -184,7 +184,7 @@ def test_singleton_class
def test_metaclass_deprecated
o = Object.new
- assert_deprecated /use singleton_class instead/ do
+ assert_deprecated(/use singleton_class instead/) do
assert_equal o.singleton_class, o.metaclass
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.