Skip to content

Instantly share code, notes, and snippets.

@oliverbarnes
Last active December 20, 2015 18:58
Show Gist options
  • Save oliverbarnes/6179515 to your computer and use it in GitHub Desktop.
Save oliverbarnes/6179515 to your computer and use it in GitHub Desktop.
1) 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)>'
2) NotificationsController#index special case for start sharing notifications should provide a contacts menu for start sharing notifications
Failure/Error: Nokogiri(response.body).css('.aspect_membership').should_not be_empty
expected empty? to return false, got true
# ./spec/controllers/notifications_controller_spec.rb:121:in `block (4 levels) in <top (required)>'
3) 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)>'
4) 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)>'
5) a user receives a post retractions should accept retractions
Failure/Error: expect {
count should have been changed by -1, but was changed by 0
# ./spec/integration/receiving_spec.rb:323:in `block (3 levels) in <top (required)>'
6) a user receives a post retractions should accept signed retractions for public posts
Failure/Error: zord.receive!
NoMethodError:
undefined method `diaspora_handle' for nil:NilClass
# ./lib/postzord/receiver/public.rb:75:in `xml_author'
# ./lib/postzord/receiver.rb:16:in `author_does_not_match_xml_author?'
# ./lib/postzord/receiver/public.rb:60:in `save_object'
# ./lib/postzord/receiver/public.rb:26:in `receive!'
# ./spec/integration/receiving_spec.rb:346:in `block (4 levels) in <top (required)>'
# ./spec/integration/receiving_spec.rb:345:in `block (3 levels) in <top (required)>'
7) a user receives a post retractions should accept relayable retractions
Failure/Error: expect {
count should have been changed by -1, but was changed by 0
# ./spec/integration/receiving_spec.rb:333:in `block (3 levels) in <top (required)>'
8) a user receives a post comments local does not raise a `Mysql2::Error: Duplicate entry...` exception on save
Failure/Error: zord.parse_and_receive(xml)
Diaspora::ContactRequiredUnlessRequest:
Diaspora::ContactRequiredUnlessRequest
# ./lib/postzord/receiver/private.rb:63:in `validate_object'
# ./lib/postzord/receiver/private.rb:39:in `parse_and_receive'
# ./spec/integration/receiving_spec.rb:11:in `receive_with_zord'
# ./spec/integration/receiving_spec.rb:255:in `block (4 levels) in <top (required)>'
9) Diaspora::Federated::Request#receive shares back if auto_following is enabled
Failure/Error: eve.contact_for( alice.person ).should be_sharing
NoMethodError:
undefined method `sharing?' for nil:NilClass
# ./spec/lib/diaspora/federated/request_spec.rb:104:in `block (3 levels) in <top (required)>'
10) User::Connecting disconnecting #disconnected_by removes notitications
Failure/Error: Notifications::StartedSharing.where(:recipient_id => eve.id).first.should_not be_nil
expected: not nil
got: nil
# ./spec/models/user/connecting_spec.rb:51:in `block (4 levels) in <top (required)>'
11) User::Connecting#share_with does set mutual on share-back request
Failure/Error: alice.contacts.find_by_person_id(eve.person.id).should be_mutual
expected mutual? to return true, got false
# ./spec/models/user/connecting_spec.rb:111:in `block (3 levels) in <top (required)>'
12) User::Connecting#share_with dispatching dispatches a request on a share-back
Failure/Error: contact.should_receive(:dispatch_request)
RuntimeError:
can't modify frozen object
# ./spec/models/user/connecting_spec.rb:143:in `block (4 levels) in <top (required)>'
13) attack vectors malicious contact attack vector it should not allow you to send retractions with xml and salmon handle mismatch
Failure/Error: expect {
expected Diaspora::AuthorXMLAuthorMismatch but nothing was raised
# ./spec/integration/attack_vectors_spec.rb:242:in `block (4 levels) in <top (required)>'
# ./spec/integration/attack_vectors_spec.rb:241:in `block (3 levels) in <top (required)>'
14) attack vectors malicious contact attack vector should not receive retractions where the retractor and the salmon author do not match
Failure/Error: expect {
expected Diaspora::AuthorXMLAuthorMismatch but nothing was raised
# ./spec/integration/attack_vectors_spec.rb:212:in `block (4 levels) in <top (required)>'
# ./spec/integration/attack_vectors_spec.rb:211:in `block (3 levels) in <top (required)>'
15) Contact aspect_memberships deletes dependent aspect memberships
Failure/Error: lambda{
count should have been changed by -1, but was changed by 0
# /Users/oliverbarnes/Projects/diaspora/spec/models/contact_spec.rb:10:in `block (3 levels) in <top (required)>'
2339/2339 |==================================================================================== 100 ====================================================================================>| Time: 00:02:12
<snip>
Finished in 2 minutes 12.56 seconds
2339 examples, 15 failures, 15 pending
Failed examples:
rspec ./spec/integration/account_deletion_spec.rb:77 # deleteing your account user deletes all of @bob2s aspect visiblites
rspec ./spec/controllers/notifications_controller_spec.rb:116 # NotificationsController#index special case for start sharing notifications should provide a contacts menu for start sharing notifications
rspec ./spec/models/user_spec.rb:560 # User account deletion #destroy removes invitations from the user
rspec ./spec/models/user_spec.rb:567 # User account deletion #destroy removes invitations to the user
rspec ./spec/integration/receiving_spec.rb:319 # a user receives a post retractions should accept retractions
rspec ./spec/integration/receiving_spec.rb:338 # a user receives a post retractions should accept signed retractions for public posts
rspec ./spec/integration/receiving_spec.rb:328 # a user receives a post retractions should accept relayable retractions
rspec ./spec/integration/receiving_spec.rb:258 # a user receives a post comments local does not raise a `Mysql2::Error: Duplicate entry...` exception on save
rspec ./spec/lib/diaspora/federated/request_spec.rb:96 # Diaspora::Federated::Request#receive shares back if auto_following is enabled
rspec ./spec/models/user/connecting_spec.rb:49 # User::Connecting disconnecting #disconnected_by removes notitications
rspec ./spec/models/user/connecting_spec.rb:107 # User::Connecting#share_with does set mutual on share-back request
rspec ./spec/models/user/connecting_spec.rb:137 # User::Connecting#share_with dispatching dispatches a request on a share-back
rspec ./spec/integration/attack_vectors_spec.rb:234 # attack vectors malicious contact attack vector it should not allow you to send retractions with xml and salmon handle mismatch
rspec ./spec/integration/attack_vectors_spec.rb:202 # attack vectors malicious contact attack vector should not receive retractions where the retractor and the salmon author do not match
rspec /Users/oliverbarnes/Projects/diaspora/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