Skip to content

Commit

Permalink
fix spec after removing StoreJob from web
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Feb 15, 2013
1 parent 0f2ef80 commit bf9bcd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/web_spec.rb
Expand Up @@ -40,14 +40,12 @@ def app
it "enqueues jobs if a router request" do
post "/logs", input

expect(pool.queue_size).to eq(2)
expect(pool.queue_size).to eq(1)
expect(last_response.status).to eq(200)

replay_job = pool.queue.pop
store_job = pool.queue.pop
expect(replay_job).to be_a(BundlerApiReplay::Job)
expect(store_job).to be_a(BundlerApiReplay::StoreJob)
[replay_job, store_job].each do |job|
[replay_job].each do |job|
expect(job.host).to eq(host)
expect(job.port).to eq(port)
expect(job.path).to eq("/api/v1/dependencies?gems=haml,bones,terminal-table,lumberjack,pry,sys-uname,growl,libnotify,bundler,open_gem,win32-open3,test-spec,camping,fcgi,memcache-client,mongrel,ruby-openid,thin,json,win32-api,therubyracer")
Expand Down

0 comments on commit bf9bcd7

Please sign in to comment.