Methods
Instance Public methods
test_homepage_path()
Link
test_homepage_url()
Link
test_link_to_person()
Link
# File actionpack/test/template/test_test.rb, line 38 def test_link_to_person with_test_route_set do person = mock(:name => "David") person.class.extend ActiveModel::Naming expects(:mocha_mock_path).with(person).returns("/people/1") assert_equal '<a href="/people/1">David</a>', link_to_person(person) end end