Take out notifier stubbing, it's in test mode.

This commit is contained in:
Raphael 2010-11-05 11:31:52 -07:00
parent c69e2b8900
commit 693847480b
3 changed files with 0 additions and 20 deletions

View file

@ -101,15 +101,11 @@ describe PublicsController do
context 'intergration tests that should not be in this file' do
describe 'friend requests' do
before do
deliverable = Object.new
deliverable.stub!(:deliver)
Notifier.stub!(:new_request).and_return(deliverable)
req.delete
user2.reload
user2.pending_requests.count.should be 1
end
it 'should accept a post from another node and save the information' do
pending
message = user2.build_post(:status_message, :message => "hi")

View file

@ -37,12 +37,6 @@ describe Diaspora::Parser do
context "friending" do
let(:good_request) { FakeHttpRequest.new(:success)}
before do
deliverable = Object.new
deliverable.stub!(:deliver)
Notifier.stub!(:new_request).and_return(deliverable)
end
it "should create a new person upon getting a person request" do
new_person = Factory.build(:person)

View file

@ -18,16 +18,6 @@ describe Diaspora::UserModules::Friending do
let(:user2) { make_user }
let(:aspect2) { user2.aspects.create(:name => "aspect two") }
before do
deliverable = Object.new
deliverable.stub!(:deliver)
Notifier.stub!(:new_request).and_return(deliverable)
Notifier.stub!(:request_accepted).and_return(deliverable)
end
context 'friend requesting' do
it "should assign a request to a aspect for the user that sent it out" do
aspect.requests.size.should == 0