Guest User

Untitled

a guest
Jun 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. 1) Failure:
  2. test_should_get_index(SuppliersControllerTest) [/test/functional/suppliers_controller_test.rb:7]:
  3. not all expectations were satisfied
  4. unsatisfied expectations:
  5. - expected exactly once, not yet invoked: Supplier(id: integer, name: string, created_at: datetime, updated_at: datetime, address1: string, address2: string, city: string, county: string, country: string, tel: string, contact_name: string, email: string, website: string, postcode: string, user_id: integer).paginate(:page => '2', :order => 'name')
  6.  
  7.  
  8. 2) Error:
  9. test_should_get_index_with_data(SuppliersControllerTest):
  10. NoMethodError: You have a nil object when you didn't expect it!
  11. The error occurred while evaluating nil.suppliers
  12. app/controllers/suppliers_controller.rb:5:in `index'
  13. /test/functional/suppliers_controller_test.rb:19:in `test_should_get_index_with_data'
Add Comment
Please, Sign In to add comment