6465: Changed "test dashboard button all #{target}" to use assert_includes
authorManoj <jonam33@gmail.com>
Tue, 21 Jul 2015 20:11:30 +0000 (16:11 -0400)
committerManoj <jonam33@gmail.com>
Tue, 21 Jul 2015 20:11:30 +0000 (16:11 -0400)
instead of css_select. css_select is throwing a wierd message.

apps/workbench/test/controllers/projects_controller_test.rb

index cb4ef9913b0cb0fa9c272db6d4c28724b30aa53e..13979df68f7ebfcaf2a466b6fa2d6fb7249be47b 100644 (file)
@@ -393,7 +393,7 @@ class ProjectsControllerTest < ActionController::TestCase
   ].each do |target,path|
     test "test dashboard button all #{target}" do
       get :index, {}, session_for(:active)
-      refute_empty css_select("[href=\"#{path}\"]")
+      assert_includes @response.body, "href=\"#{path}\""
       assert_includes @response.body, "All #{target}"
     end
   end