Update test names to match method name

The method is named `delegate_missing_to`, not `delegate_to_missing`
This commit is contained in:
T.J. Schuck 2017-05-04 16:04:32 -04:00
parent aa91328058
commit 1700855926

@ -348,15 +348,15 @@ def test_delegation_with_method_arguments
assert has_block.hello?
end
def test_delegate_to_missing_with_method
def test_delegate_missing_to_with_method
assert_equal "David", DecoratedTester.new(@david).name
end
def test_delegate_to_missing_with_reserved_methods
def test_delegate_missing_to_with_reserved_methods
assert_equal "David", DecoratedReserved.new(@david).name
end
def test_delegate_to_missing_does_not_delegate_to_private_methods
def test_delegate_missing_to_does_not_delegate_to_private_methods
e = assert_raises(NoMethodError) do
DecoratedReserved.new(@david).private_name
end
@ -364,7 +364,7 @@ def test_delegate_to_missing_does_not_delegate_to_private_methods
assert_match(/undefined method `private_name' for/, e.message)
end
def test_delegate_to_missing_does_not_delegate_to_fake_methods
def test_delegate_missing_to_does_not_delegate_to_fake_methods
e = assert_raises(NoMethodError) do
DecoratedReserved.new(@david).my_fake_method
end
@ -372,7 +372,7 @@ def test_delegate_to_missing_does_not_delegate_to_fake_methods
assert_match(/undefined method `my_fake_method' for/, e.message)
end
def test_delegate_to_missing_affects_respond_to
def test_delegate_missing_to_affects_respond_to
assert DecoratedTester.new(@david).respond_to?(:name)
assert_not DecoratedTester.new(@david).respond_to?(:private_name)
assert_not DecoratedTester.new(@david).respond_to?(:my_fake_method)
@ -382,7 +382,7 @@ def test_delegate_to_missing_affects_respond_to
assert_not DecoratedTester.new(@david).respond_to?(:my_fake_method, true)
end
def test_delegate_to_missing_respects_superclass_missing
def test_delegate_missing_to_respects_superclass_missing
assert_equal 42, DecoratedTester.new(@david).extra_missing
assert_respond_to DecoratedTester.new(@david), :extra_missing