Skip to content

Commit

Permalink
refactor sidekiq roster spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tapalilov committed Jun 12, 2013
1 parent f7c04bb commit 657dbeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/spec/workers/roster_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
it 'add new job to worker' do
file_f = create(:import_file)
worker = Gaku::Core::Importers::Students::RosterWorker
expect do
worker.perform_async(file_f.id)
end.to change(worker.jobs, :size).by(1)
worker.perform_async(file_f.id)
expect(worker).to have(1).enqueued.jobs
end

end

0 comments on commit 657dbeb

Please sign in to comment.