Guest User

Untitled

a guest
Jul 21st, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. using @user.administrated_events
  2.  
  3. should be valid # OK
  4.  
  5. should include the event from the user side # OK
  6.  
  7. should include the user from the event side # FAILED
  8.  
  9. expected [] to include #<User _id: 4d42964519a29852af00000b, created_at: 2011-01-28 10:11:17 UTC, updated_at: 2011-01-28 10:11:17 UTC, username: "user", level: :basic, accepted_terms_of_use: true, show_my_events: true, confirmation_token: nil, confirmation_sent_at: nil, confirmed_at: 2011-01-21 10:11:17 UTC, current_sign_in_at: nil, current_sign_in_ip: nil, email: "user@example.com", encrypted_password: "$2a$10$FiIUXkRsYKi4dBfLpPJl9OMwSffnaSQkiJSZiFMv5CW48JzLbuRz2", failed_attempts: nil, last_sign_in_at: nil, last_sign_in_ip: nil, password_salt: nil, remember_created_at: nil, remember_token: nil, sign_in_count: nil, favorite_event_ids: [], administrated_event_ids: [BSON::ObjectId('4d42964519a29852af00000d')], reported_spam_event_ids: []>
  10. Diff:
  11. @@ -1,2 +1,2 @@
  12. -#<User _id: 4d42964519a29852af00000b, created_at: 2011-01-28 10:11:17 UTC, updated_at: 2011-01-28 10:11:17 UTC, username: "user", level: :basic, accepted_terms_of_use: true, show_my_events: true, confirmation_token: nil, confirmation_sent_at: nil, confirmed_at: 2011-01-21 10:11:17 UTC, current_sign_in_at: nil, current_sign_in_ip: nil, email: "user@example.com", encrypted_password: "$2a$10$FiIUXkRsYKi4dBfLpPJl9OMwSffnaSQkiJSZiFMv5CW48JzLbuRz2", failed_attempts: nil, last_sign_in_at: nil, last_sign_in_ip: nil, password_salt: nil, remember_created_at: nil, remember_token: nil, sign_in_count: nil, favorite_event_ids: [], administrated_event_ids: [BSON::ObjectId('4d42964519a29852af00000d')], reported_spam_event_ids: []>
  13. +[]
  14. ./spec/models/relations/user_relations.rb:30 :in `block (3 levels) in '
  15. 27 end
  16. 28
  17. 29 raise(RSpec::Expectations::ExpectationNotMetError.new(message))
  18. 30 end
  19. 31
  20. 32# gem install syntax to get syntax highlighting
Add Comment
Please, Sign In to add comment