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
|
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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue