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

Version Path
versioncake-4.1.1 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-4.1.0 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-4.0.2 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-4.0.1 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-4.0.0 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-3.4.0 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-3.3.0 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-3.2.0 spec/unit/response_strategy/http_header_strategy_spec.rb
versioncake-3.1.0 spec/unit/response_strategy/http_header_strategy_spec.rb