From 6993f3e2b59d30b1fbcce972ae870ac201bd455b Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 22 Oct 2010 11:05:37 -0700 Subject: [PATCH] Fix spec in user_encryption --- spec/user_encryption_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/user_encryption_spec.rb b/spec/user_encryption_spec.rb index 581e4f414..709968278 100644 --- a/spec/user_encryption_spec.rb +++ b/spec/user_encryption_spec.rb @@ -27,6 +27,9 @@ describe 'user encryption' do remote_user = Factory.build(:user) remote_user.encryption_key.nil?.should== false + deliverable = Object.new + deliverable.stub!(:deliver) + Notifier.stub!(:new_request).and_return(deliverable) Person.should_receive(:by_webfinger).and_return(remote_user.person) #should move this to friend request, but i found it here id = remote_user.person.id