Fix a couple local-posting specs
This commit is contained in:
parent
c99796f5db
commit
36e1fb8b2c
3 changed files with 9 additions and 7 deletions
|
|
@ -138,8 +138,9 @@ describe Aspect do
|
|||
|
||||
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.post_ids.include?(message.id).should be false
|
||||
end
|
||||
|
|
|
|||
|
|
@ -80,9 +80,11 @@ describe User do
|
|||
|
||||
context 'after request acceptance' do
|
||||
before do
|
||||
invited_user.accept_and_respond(invited_user.pending_requests.first.id,
|
||||
invited_user.aspects.create(
|
||||
:name => 'first aspect!').id)
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue