Guest User

Untitled

a guest
Dec 11th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. diff --git a/test/client/tasks_test.rb b/test/client/tasks_test.rb
  2. index 0fef3c6..f3f2018 100644
  3. --- a/test/client/tasks_test.rb
  4. +++ b/test/client/tasks_test.rb
  5. @@ -14,7 +14,7 @@ describe Elastomer::Client::Tasks do
  6. end
  7.  
  8. it "list all in-flight tasks" do
  9. - h = @tasks.get :group_by => "nodes"
  10. + h = @tasks.get
  11. assert h["nodes"].keys.size > 0
  12.  
  13. total_tasks = h["nodes"].map { |k, v| v["tasks"].keys.count }.sum
  14. diff --git a/test/test_helper.rb b/test/test_helper.rb
  15. index 1e6fbc1..b128faf 100644
  16. --- a/test/test_helper.rb
  17. +++ b/test/test_helper.rb
  18. @@ -18,6 +18,7 @@ end
  19. require "minitest/spec"
  20. require "minitest/autorun"
  21. require "minitest/focus"
  22. +require "active_support/core_ext/enumerable"
  23.  
  24. # push the lib folder onto the load path
  25. $LOAD_PATH.unshift "lib"
Add Comment
Please, Sign In to add comment