projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15803: Adjust workbench1 user panel to promote setup/unsetup buttons
[arvados.git]
/
apps
/
workbench
/
test
/
controllers
/
projects_controller_test.rb
diff --git
a/apps/workbench/test/controllers/projects_controller_test.rb
b/apps/workbench/test/controllers/projects_controller_test.rb
index 0f79168901364f72c232c85cd981eb0540efd084..dd828952be2fb828e8f1e1b11b1cfc1616515683 100644
(file)
--- a/
apps/workbench/test/controllers/projects_controller_test.rb
+++ b/
apps/workbench/test/controllers/projects_controller_test.rb
@@
-396,10
+396,7
@@
EOT
end
end
end
end
- [
- [:admin, true],
- [:active, false],
- ].each do |user, expect_all_nodes|
+ [:admin, :active].each do |user|
test "in dashboard other index page links as #{user}" do
get :index, params: {}, session: session_for(user)
test "in dashboard other index page links as #{user}" do
get :index, params: {}, session: session_for(user)
@@
-409,14
+406,6
@@
EOT
assert_includes @response.body, "href=\"#{path}\""
assert_includes @response.body, "All #{target}"
end
assert_includes @response.body, "href=\"#{path}\""
assert_includes @response.body, "All #{target}"
end
-
- if expect_all_nodes
- assert_includes @response.body, "href=\"/nodes\""
- assert_includes @response.body, "All nodes"
- else
- assert_not_includes @response.body, "href=\"/nodes\""
- assert_not_includes @response.body, "All nodes"
- end
end
end
end
end