Source: show | on GitHub
# File actionpack/test/template/url_helper_test.rb, line 626 def test_link_to_unless_current_shows_link get :show, :id => 1 assert_equal "<a href=\"/tasks\">tasks</a>\n" + "<a href=\"#{@request.protocol}#{@request.host_with_port}/tasks\">tasks</a>", @response.body end
# File actionpack/test/template/url_helper_test.rb, line 621 def test_link_to_unless_current_to_current get :index assert_equal "tasks\ntasks", @response.body end