Skip to content

Instantly share code, notes, and snippets.

@oliverbarnes
Created August 13, 2013 23:25
Show Gist options
  • Save oliverbarnes/6226698 to your computer and use it in GitHub Desktop.
Save oliverbarnes/6226698 to your computer and use it in GitHub Desktop.
1) User account deletion #destroy removes invitations to the user
Failure/Error: lambda {
result should have been changed by -1, but was changed by 0
# ./spec/models/user_spec.rb:569:in `block (4 levels) in <top (required)>'
2) User account deletion #destroy removes invitations from the user
Failure/Error: lambda {
result should have been changed by -1, but was changed by 0
# ./spec/models/user_spec.rb:562:in `block (4 levels) in <top (required)>'
3) deleteing your account user deletes all of @bob2s aspect visiblites
Failure/Error: AspectVisibility.where(:id => @aspect_vis.map(&:id)).should be_empty
expected empty? to return true, got false
# ./spec/integration/account_deletion_spec.rb:78:in `block (3 levels) in <top (required)>'
4) Contact aspect_memberships deletes dependent aspect memberships
Failure/Error: lambda{
count should have been changed by -1, but was changed by 0
# ./spec/models/contact_spec.rb:10:in `block (3 levels) in <top (required)>'
155/155 |==================================================================================== 100 ====================================================================================>| Time: 00:00:14
Top 10 slowest examples (5.22 seconds, 37.9% of total time):
deleteing your account user deletes all of the user's preferences
0.72032 seconds ./spec/integration/account_deletion_spec.rb:56
deleteing your account user it should behave like it removes the person associations deletes only the converersation visibility for the deleted user
0.5075 seconds ./spec/shared_behaviors/account_deletion.rb:32
deleteing your account user it should behave like it removes the person associations removes all of the person's posts
0.50529 seconds ./spec/shared_behaviors/account_deletion.rb:9
deleteing your account user it should behave like it removes the person associations sets the person object as closed and the profile is cleared
0.50459 seconds ./spec/shared_behaviors/account_deletion.rb:25
deleteing your account user it should behave like it removes the person associations removes all of the person's photos
0.50283 seconds ./spec/shared_behaviors/account_deletion.rb:21
deleteing your account user clears the account fields
0.50187 seconds ./spec/integration/account_deletion_spec.rb:90
deleteing your account user it should behave like it removes the person associations deletes all mentions
0.49883 seconds ./spec/shared_behaviors/account_deletion.rb:17
deleteing your account user deletes all of @bob2s aspect visiblites
0.49706 seconds ./spec/integration/account_deletion_spec.rb:77
deleteing your account user deletes all of the users's blocked users
0.49415 seconds ./spec/integration/account_deletion_spec.rb:64
deleteing your account user deletes all user contacts
0.49222 seconds ./spec/integration/account_deletion_spec.rb:85
Finished in 14.84 seconds
155 examples, 4 failures
Failed examples:
rspec ./spec/models/user_spec.rb:567 # User account deletion #destroy removes invitations to the user
rspec ./spec/models/user_spec.rb:560 # User account deletion #destroy removes invitations from the user
rspec ./spec/integration/account_deletion_spec.rb:77 # deleteing your account user deletes all of @bob2s aspect visiblites
rspec ./spec/models/contact_spec.rb:9 # Contact aspect_memberships deletes dependent aspect memberships
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment