Guest User

Untitled

a guest
Feb 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. [knewby@john tuner]$ spec spec/controllers/admin/grid_file_controller_spec.rb
  2. Admin::GridFileController
  3. POST create
  4. when file contents parse correctly
  5. deletes all the current guides (FAILED - 1)
  6. creates new guides with correct channels (FAILED - 2)
  7. when parsing returns nil
  8. returns to new grid file with error message
  9.  
  10. 1)
  11. NoMethodError in 'Admin::GridFileController POST create when file contents parse correctly deletes all the current guides'
  12. You have a nil object when you didn't expect it!
  13. You might have expected an instance of ActiveRecord::Base.
  14. The error occurred while evaluating nil.[]
  15. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:13:in `create'
  16. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `each'
  17. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `create'
  18. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `each'
  19. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `create'
  20. ./spec/controllers/admin/grid_file_controller_spec.rb:22:
  21.  
  22. 2)
  23. NoMethodError in 'Admin::GridFileController POST create when file contents parse correctly creates new guides with correct channels'
  24. You have a nil object when you didn't expect it!
  25. You might have expected an instance of ActiveRecord::Base.
  26. The error occurred while evaluating nil.[]
  27. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:13:in `create'
  28. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `each'
  29. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `create'
  30. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `each'
  31. /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `create'
  32. ./spec/controllers/admin/grid_file_controller_spec.rb:29:
  33.  
  34. Finished in 0.081476 seconds
  35.  
  36. 3 examples, 2 failures
  37. [knewby@john tuner]$
Add Comment
Please, Sign In to add comment