Tests adjustments for girl_friday

openid
Marcin Kulik 13 years ago
parent eb82eceb4e
commit 347068e064

@ -17,7 +17,7 @@ describe Api::AsciicastsController do
end
it 'enqueues snapshot capture' do
SnapshotWorker.should_receive(:perform_async).with(asciicast.id)
SNAPSHOT_QUEUE.should_receive(:<<).with(asciicast.id)
post :create
end

@ -20,3 +20,5 @@ RSpec.configure do |config|
config.infer_base_class_for_anonymous_controllers = false
end
GirlFriday::Queue.immediate!

Loading…
Cancel
Save