Fix a couple local-posting specs

This commit is contained in:
Raphael 2010-12-04 23:38:31 -08:00
parent c99796f5db
commit 36e1fb8b2c
3 changed files with 9 additions and 7 deletions

View file

@ -138,8 +138,9 @@ describe Aspect do
aspect.reload.post_ids.include?(message.id).should be true aspect.reload.post_ids.include?(message.id).should be true
retraction = user2.retract(message) fantasy_resque do
retraction = user2.retract(message)
end
aspect.reload aspect.reload
aspect.post_ids.include?(message.id).should be false aspect.post_ids.include?(message.id).should be false
end end

View file

@ -80,9 +80,11 @@ describe User do
context 'after request acceptance' do context 'after request acceptance' do
before do before do
invited_user.accept_and_respond(invited_user.pending_requests.first.id, fantasy_resque do
invited_user.aspects.create( invited_user.accept_and_respond(invited_user.pending_requests.first.id,
:name => 'first aspect!').id) invited_user.aspects.create(
:name => 'first aspect!').id)
end
invited_user.reload invited_user.reload
inviter.reload inviter.reload
end end

View file

@ -34,8 +34,7 @@ RSpec.configure do |config|
DatabaseCleaner.clean DatabaseCleaner.clean
UserFixer.load_user_fixtures UserFixer.load_user_fixtures
Notifier.stub!(:send_request_accepted!).and_return(true) $process_queue = false
Notifier.stub!(:send_new_request!).and_return(true)
end end
end end