Skip to content

Instantly share code, notes, and snippets.

@deepakprasanna
Created July 29, 2009 06:12
Show Gist options
  • Save deepakprasanna/157897 to your computer and use it in GitHub Desktop.
Save deepakprasanna/157897 to your computer and use it in GitHub Desktop.
1) Error:
test: document in a ds_admin login should download on clicking the respective link. (DocumentsControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.get_file
app/models/document.rb:53:in `get_latest_revision'
app/controllers/documents_controller.rb:56:in `load_file'
/usr/lib/ruby/gems/1.8/gems/haml-edge-2.1.24/lib/sass/plugin/rails.rb:19:in `process'
functional/documents_controller_test.rb:74:in `__bind_1248847869_460334'
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `call'
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `test: document in a ds_admin login should download on clicking the respective link. '
2) Error:
test: document in a normal user login should download on clicking the respective link. (DocumentsControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.get_file
app/models/document.rb:53:in `get_latest_revision'
app/controllers/documents_controller.rb:56:in `load_file'
/usr/lib/ruby/gems/1.8/gems/haml-edge-2.1.24/lib/sass/plugin/rails.rb:19:in `process'
functional/documents_controller_test.rb:202:in `__bind_1248847871_190054'
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `call'
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `test: document in a normal user login should download on clicking the respective link. '
3) Error:
test: document in a section editor login should download on clicking the respective link. (DocumentsControllerTest):
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.get_file
app/models/document.rb:53:in `get_latest_revision'
app/controllers/documents_controller.rb:56:in `load_file'
/usr/lib/ruby/gems/1.8/gems/haml-edge-2.1.24/lib/sass/plugin/rails.rb:19:in `process'
functional/documents_controller_test.rb:151:in `__bind_1248847875_140469'
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `call'
/usr/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `test: document in a section editor login should download on clicking the respective link. '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment