X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8d2271699bfe8199ebeac2d2bf491e2133cc02d8..86dbcb55f25219edc4f0aa93b209357e4cac0621:/test/controllers/traces_controller_test.rb diff --git a/test/controllers/traces_controller_test.rb b/test/controllers/traces_controller_test.rb index 364142dd9..36bee9c95 100644 --- a/test/controllers/traces_controller_test.rb +++ b/test/controllers/traces_controller_test.rb @@ -761,7 +761,9 @@ class TracesControllerTest < ActionDispatch::IntegrationTest assert_response :success assert_template "index" - if !traces.empty? + if traces.empty? + assert_select "h4", /Nothing here yet/ + else assert_select "table#trace_list tbody", :count => 1 do assert_select "tr", :count => traces.length do |rows| traces.zip(rows).each do |trace, row| @@ -772,8 +774,6 @@ class TracesControllerTest < ActionDispatch::IntegrationTest end end end - else - assert_select "h4", /Nothing here yet/ end end