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