Sha256: e0efa80d9607ee862790c10cc8e56bc29e5c81faa4d358d93feca861b52991d3

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

require 'spec_helper'

describe Evrone::CI::Router::Middleware::LogBuild do
  let(:build) { create :build }
  let(:app)   { ->(_) { 0 } }
  let(:env)   { OpenStruct.new build: build }

  subject { described_class.new app }

  context "call" do
    subject{ described_class.new(app).call env }
    it { should eq 0 }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrone-ci-router-0.2.0.pre0 spec/lib/middleware/log_build_spec.rb