class LinkToUnlessCurrentWithControllerTest
Public Instance Methods
test_link_to_unless_current_shows_link()
click to toggle source
# File actionview/test/template/url_helper_test.rb, line 851 def test_link_to_unless_current_shows_link get :show, params: { id: 1 } assert_equal %{<a href="/tasks">tasks</a>\n} + %{<a href="#{@request.protocol}#{@request.host_with_port}/tasks">tasks</a>}, @response.body end
test_link_to_unless_current_to_current()
click to toggle source
# File actionview/test/template/url_helper_test.rb, line 846 def test_link_to_unless_current_to_current get :index assert_equal "tasks\ntasks", @response.body end