Sha256: b7a568f6281755bf1ba91d0172fb74296981ca6b2bd2adf74bc25b74dc98461d
Contents?: true
Size: 451 Bytes
Versions: 9
Compression:
Stored size: 451 Bytes
Contents
require 'spec_helper' describe VersionCake::ResponseStrategy::HttpHeaderStrategy do describe '#execute' do let(:headers) { { } } let(:context) { double('content', version: 8) } before do VersionCake::ResponseStrategy::HttpHeaderStrategy.new.execute( context, nil, headers, nil ) end it do expect(headers.keys).to include 'api-version' expect(headers['api-version']).to eq '8' end end end
Version data entries
9 entries across 9 versions & 1 rubygems