vendor/rails/actionpack/test/template/test_test.rb in radiant-0.7.2 vs vendor/rails/actionpack/test/template/test_test.rb in radiant-0.8.0
- old
+ new
@@ -36,15 +36,13 @@
def test_homepage_url
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
class CrazyHelperTest < ActionView::TestCase
tests PeopleHelper