aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/test_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/template/test_test.rb')
-rw-r--r--actionpack/test/template/test_test.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/test/template/test_test.rb b/actionpack/test/template/test_test.rb
index c35a264abf..dd07a6d438 100644
--- a/actionpack/test/template/test_test.rb
+++ b/actionpack/test/template/test_test.rb
@@ -39,12 +39,10 @@ class PeopleHelperTest < ActionView::TestCase
assert_equal "http://test.host/people", homepage_url
end
- uses_mocha "link_to_person" do
- def test_link_to_person
- person = mock(:name => "David")
- expects(:mocha_mock_path).with(person).returns("/people/1")
- assert_equal '<a href="/people/1">David</a>', link_to_person(person)
- end
+ def test_link_to_person
+ person = mock(:name => "David")
+ expects(:mocha_mock_path).with(person).returns("/people/1")
+ assert_equal '<a href="/people/1">David</a>', link_to_person(person)
end
end