Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMaxwell Salzberg <maxwell@joindiaspora.com>2011-10-25 22:41:52 +0400
committerMaxwell Salzberg <maxwell@joindiaspora.com>2011-10-25 22:41:52 +0400
commit2cbb61be7500cee154b63ecdd80b000a136c3957 (patch)
tree94ffb26581b246ca09443c6942187a2373771c98 /spec
parent0512ade65aa4a0c462e139d67898cc4d8328d6f8 (diff)
make federation errors much louder so we can better debug issues temporarialy
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/attack_vectors_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/integration/attack_vectors_spec.rb b/spec/integration/attack_vectors_spec.rb
index d65567e29..3c72fba0a 100644
--- a/spec/integration/attack_vectors_spec.rb
+++ b/spec/integration/attack_vectors_spec.rb
@@ -23,7 +23,7 @@ describe "attack vectors" do
zord = Postzord::Receiver::Private.new(bob, :salmon_xml => salmon_xml)
expect {
zord.perform!
- }.should raise_error /not a valid object/
+ }.should raise_error /Contact required unless request/
bob.visible_shareables(Post).include?(post_from_non_contact).should be_false
Post.count.should == post_count
@@ -40,7 +40,7 @@ describe "attack vectors" do
zord = Postzord::Receiver::Private.new(bob, :salmon_xml => salmon_xml)
expect {
zord.perform!
- }.should raise_error /not a valid object/
+ }.should raise_error /Contact required unless request/
alice.reload.visible_shareables(Post).should_not include(StatusMessage.find(original_message.id))
end
@@ -98,7 +98,7 @@ describe "attack vectors" do
zord = Postzord::Receiver::Private.new(bob, :salmon_xml => salmon_xml)
expect {
zord.perform!
- }.should raise_error /not a valid object/
+ }.should raise_error /Author does not match XML author/
eve.reload.profile.first_name.should == first_name
end
@@ -165,7 +165,7 @@ describe "attack vectors" do
zord = Postzord::Receiver::Private.new(bob, :salmon_xml => salmon_xml)
expect {
zord.perform!
- }.should raise_error /not a valid object/
+ }.should raise_error /Author does not match XML author/
bob.reload.visible_shareables(Post).count.should == 1
end
@@ -197,7 +197,7 @@ describe "attack vectors" do
zord = Postzord::Receiver::Private.new(bob, :salmon_xml => salmon_xml)
expect {
zord.perform!
- }.should raise_error /not a valid object/
+ }.should raise_error /Author does not match XML author/
bob.reload.contacts.count.should == 2
end