Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Failures:
- 1) Admin::UsersController GET index user is logged in user is administrator assigns @users
- Failure/Error: expect(assigns[:users]).to eql User.all
- 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>]>
- 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>]>
- (compared using eql?)
- Diff:
- @@ -1,4 +1,4 @@
- -[#<User:0x007ff4511ce218
- +[#<User:0x007ff452e26758
- id: 1,
- email: "filiberto@franecki.co",
- password_digest:
- # ./spec/controllers/admin/users_controller_spec.rb:22:in `block (5 levels) in <top (required)>'
- # -e:1:in `<main>'
- Finished in 0.68255 seconds (files took 24 minutes 48 seconds to load)
- 3 examples, 1 failure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement