Skip to content

Instantly share code, notes, and snippets.

@cmrd-senya
Created November 1, 2015 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmrd-senya/5b1d01a005ff590f5de4 to your computer and use it in GitHub Desktop.
Save cmrd-senya/5b1d01a005ff590f5de4 to your computer and use it in GitHub Desktop.
user@debian:~/diaspora$ git diff
diff --git a/spec/federation_messages/federation_messages_spec.rb b/spec/federation_messages/federation_messages_spec.rb
index 349443a..97dbb74 100644
--- a/spec/federation_messages/federation_messages_spec.rb
+++ b/spec/federation_messages/federation_messages_spec.rb
@@ -23,11 +23,11 @@ describe "Generation and dispatch of federation messages" do
.to_rack(rack_app)
stub_request(:get, Addressable::Template.new(@testbed_pod + "/hcard/users/test@" + @testbed_pod))
.to_rack(rack_app)
- stub_request(:post, Addressable::Template.new(@testbed_pod + "/receive/users/{guid}")).to_rack(rack_app)
+# stub_request(:post, Addressable::Template.new(@testbed_pod + "/receive/users/{guid}")).to_rack(rack_app)
end
before do
- allow_any_instance_of(Postzord::Dispatcher::Private).to receive(:deliver_to_remote).and_call_original
- allow_any_instance_of(Postzord::Dispatcher::Public).to receive(:deliver_to_remote).and_call_original
+# allow_any_instance_of(Postzord::Dispatcher::Private).to receive(:deliver_to_remote).and_call_original
+# allow_any_instance_of(Postzord::Dispatcher::Public).to receive(:deliver_to_remote).and_call_original
end
after :all do
end
user@debian:~/diaspora$ bundle exec rspec spec/federation_messages/federation_messages_spec.rb
WARNING: Namespace test not found in /home/user/diaspora/config/diaspora.yml
=> Building fixtures
=> Built aspects.yml, contacts.yml, aspect_memberships.yml, people.yml, users.yml, and profiles.yml
Run options: exclude {:performance=>true}
Randomized with seed 43689
1/1 |========================================================= 100 =========================================================>| Time: 00:00:00
Top 1 slowest examples (0.16908 seconds, 74.8% of total time):
Generation and dispatch of federation messages user share request works
0.16908 seconds ./spec/federation_messages/federation_messages_spec.rb:36
Finished in 0.22611 seconds (files took 10.39 seconds to load)
1 example, 0 failures
Randomized with seed 43689
user@debian:~/diaspora$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment