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
fantasy_resque do
retraction = user2.retract(message)
end
aspect.reload
aspect.post_ids.include?(message.id).should be false
end

View file

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

View file

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