Sha256: bb139c7b7eaacc6d5e98455582d885757b89b53ea96ce6f3298cbfdb7dc9912b

Contents?: true

Size: 320 Bytes

Versions: 27

Compression:

Stored size: 320 Bytes

Contents

require 'spec_helper'

describe Evrone::CI::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

27 entries across 27 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre7 spec/lib/worker/middlewares/log_job_spec.rb
evrone-ci-worker-0.2.0.pre6 spec/lib/worker/middlewares/log_job_spec.rb
evrone-ci-worker-0.2.0.pre5 spec/lib/worker/middlewares/log_job_spec.rb
evrone-ci-worker-0.2.0.pre4 spec/lib/worker/middlewares/log_job_spec.rb
evrone-ci-worker-0.2.0.pre3 spec/lib/worker/middlewares/log_job_spec.rb
evrone-ci-worker-0.2.0.pre1 spec/lib/worker/middlewares/log_job_spec.rb
evrone-ci-worker-0.2.0.pre0 spec/lib/worker/middlewares/log_job_spec.rb