gitlab-org--gitlab-foss/spec/lib/gitlab/middleware/release_env_spec.rb

17 lines
405 B
Ruby
Raw Normal View History

require 'spec_helper'
2018-02-07 09:44:05 -05:00
describe Gitlab::Middleware::ReleaseEnv do
2018-03-02 11:39:42 -05:00
let(:inner_app) { double(:app, call: 'yay') }
let(:app) { described_class.new(inner_app) }
let(:env) { { 'action_controller.instance' => 'something' } }
describe '#call' do
2018-03-02 11:39:42 -05:00
it 'calls the app and clears the env' do
result = app.call(env)
expect(result).to eq('yay')
expect(env).to be_empty
end
end
end