Sha256: 7c24c08c5e925795736636d4fcc4737f5d29b783a45da75ad277166c9bbf3fe0
Contents?: true
Size: 421 Bytes
Versions: 5
Compression:
Stored size: 421 Bytes
Contents
RSpec.describe Evil::Client::Middleware::NormalizeHeaders do let(:stack) { described_class.new(app) } let(:app) { double :app } let(:env) { { headers: { Foo: :BAR } } } def update!(env) @result = env end before { allow(app).to receive(:call) { |env| update! env } } subject { stack.call env } it "normalizes headers" do subject expect(@result[:headers]).to eq "foo" => "BAR" end end
Version data entries
5 entries across 5 versions & 1 rubygems