Advertisement
Guest User

Untitled

a guest
Mar 26th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. Failures:
  2.  
  3. 1) Admin::UsersController GET index user is logged in user is administrator assigns @users
  4. Failure/Error: expect(assigns[:users]).to eql User.all
  5.  
  6. expected: #<ActiveRecord::Relation [#<User id: 1, email: "filiberto@franecki.co", password_digest: "$2a$04$LpGXA9jLhSMaEvR10ZtyTeSyu/lMfvxKnz/m0zSrE5r...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: "2016-03-23 17:51:02", updated_at: "2016-03-23 17:51:02", first_name: "Jim", last_name: "Cormier", suffix: "Mr.", middle_name: "Roob", phone_number: "433 - 728 - 4106", other_number: "708 - 325 - 1297", driver_license: "17948737775", social_security: "609 - 91 - 554", dob: "2001-02-03", registration_ip: "192.168.0.1", home_address: "812 Bogisich Burgs", city: "Morissettechester", zipcode: 26376, time_at_address_months: "1", time_at_address_years: "3", residence_type: "Rent", household_payment: "5000.00", state: "TX", employer_name: "Rowe, Luettgen and Ortiz", occupation: "Harvey, Maggio and Bartell", employment_address: "Murray-Zemlak", employment_state: "TN", employment_city: "Arthurland", employment_zipcode: "53859-9915", employment_phone: "499 - 651 - 4475", employment_gross_income: "4500.00", employment_years: "4", employment_months: "1", credit_login: "zita.armstrong@hodkiewiczgottlieb.name", credit_password: "KhJ6XfPoH", credit_security_answer: "Schoen LLC", credit_mother_dob: "2001-02-03", referred_by: "Dessie Schamberger", approved: false, admin: true, step_number: 0, letter_of_representation_id: nil, payment_verification_id: nil, disclosure_statement_id: nil, service_agreement_id: nil, id_and_social_id: nil, first_utility_id: nil, second_utility_id: nil, police_report_id: nil, police_affidavit_id: nil>]>
  7. got: #<ActiveRecord::Relation [#<User id: 1, email: "filiberto@franecki.co", password_digest: "$2a$04$LpGXA9jLhSMaEvR10ZtyTeSyu/lMfvxKnz/m0zSrE5r...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: "2016-03-23 17:51:02", updated_at: "2016-03-23 17:51:02", first_name: "Jim", last_name: "Cormier", suffix: "Mr.", middle_name: "Roob", phone_number: "433 - 728 - 4106", other_number: "708 - 325 - 1297", driver_license: "17948737775", social_security: "609 - 91 - 554", dob: "2001-02-03", registration_ip: "192.168.0.1", home_address: "812 Bogisich Burgs", city: "Morissettechester", zipcode: 26376, time_at_address_months: "1", time_at_address_years: "3", residence_type: "Rent", household_payment: "5000.00", state: "TX", employer_name: "Rowe, Luettgen and Ortiz", occupation: "Harvey, Maggio and Bartell", employment_address: "Murray-Zemlak", employment_state: "TN", employment_city: "Arthurland", employment_zipcode: "53859-9915", employment_phone: "499 - 651 - 4475", employment_gross_income: "4500.00", employment_years: "4", employment_months: "1", credit_login: "zita.armstrong@hodkiewiczgottlieb.name", credit_password: "KhJ6XfPoH", credit_security_answer: "Schoen LLC", credit_mother_dob: "2001-02-03", referred_by: "Dessie Schamberger", approved: false, admin: true, step_number: 0, letter_of_representation_id: nil, payment_verification_id: nil, disclosure_statement_id: nil, service_agreement_id: nil, id_and_social_id: nil, first_utility_id: nil, second_utility_id: nil, police_report_id: nil, police_affidavit_id: nil>]>
  8.  
  9. (compared using eql?)
  10.  
  11. Diff:
  12. @@ -1,4 +1,4 @@
  13. -[#<User:0x007ff4511ce218
  14. +[#<User:0x007ff452e26758
  15. id: 1,
  16. email: "filiberto@franecki.co",
  17. password_digest:
  18.  
  19. # ./spec/controllers/admin/users_controller_spec.rb:22:in `block (5 levels) in <top (required)>'
  20. # -e:1:in `<main>'
  21.  
  22. Finished in 0.68255 seconds (files took 24 minutes 48 seconds to load)
  23. 3 examples, 1 failure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement