Sha256: c9b0c81dc95f9e8987a85bec75b5a40dad3ec8ac871f86ee695c5276c7464eaa

Contents?: true

Size: 312 Bytes

Versions: 14

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper'

describe Vx::Worker::LogJob do
  let(:exit_code)   { 0 }
  let(:app)         { ->(_) { exit_code } }
  let(:job)         { create :job }
  let(:env)         { OpenStruct.new job: job }
  let(:mid)         { described_class.new app }

  subject { mid.call env }

  it { should eq 0 }

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vx-worker-0.3.0.pre1 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.3.0.pre0 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.1 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre38 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre37 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre36 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre35 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre34 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre33 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre32 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre31 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre30 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre29 spec/lib/worker/middlewares/log_job_spec.rb
vx-worker-0.2.0.pre28 spec/lib/worker/middlewares/log_job_spec.rb