Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [knewby@john tuner]$ spec spec/controllers/admin/grid_file_controller_spec.rb
- Admin::GridFileController
- POST create
- when file contents parse correctly
- deletes all the current guides (FAILED - 1)
- creates new guides with correct channels (FAILED - 2)
- when parsing returns nil
- returns to new grid file with error message
- 1)
- NoMethodError in 'Admin::GridFileController POST create when file contents parse correctly deletes all the current guides'
- You have a nil object when you didn't expect it!
- You might have expected an instance of ActiveRecord::Base.
- The error occurred while evaluating nil.[]
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:13:in `create'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `each'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `create'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `each'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `create'
- ./spec/controllers/admin/grid_file_controller_spec.rb:22:
- 2)
- NoMethodError in 'Admin::GridFileController POST create when file contents parse correctly creates new guides with correct channels'
- You have a nil object when you didn't expect it!
- You might have expected an instance of ActiveRecord::Base.
- The error occurred while evaluating nil.[]
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:13:in `create'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `each'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:12:in `create'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `each'
- /home/knewby/midpoint/midpoint/webservices/tuner/app/controllers/admin/grid_file_controller.rb:10:in `create'
- ./spec/controllers/admin/grid_file_controller_spec.rb:29:
- Finished in 0.081476 seconds
- 3 examples, 2 failures
- [knewby@john tuner]$
Add Comment
Please, Sign In to add comment