projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d1fb01
)
6465: Changed "test dashboard button all #{target}" to use assert_includes
author
Manoj <jonam33@gmail.com>
Tue, 21 Jul 2015 20:11:30 +0000
(16:11 -0400)
committer
Manoj <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
patch
|
blob
|
history
diff --git
a/apps/workbench/test/controllers/projects_controller_test.rb
b/apps/workbench/test/controllers/projects_controller_test.rb
index cb4ef9913b0cb0fa9c272db6d4c28724b30aa53e..13979df68f7ebfcaf2a466b6fa2d6fb7249be47b 100644
(file)
--- a/
apps/workbench/test/controllers/projects_controller_test.rb
+++ b/
apps/workbench/test/controllers/projects_controller_test.rb
@@
-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