Sha256: 244899c455c746f1d270940990bda00ef341de8b054b395f3d6df0a71e2fd258

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

describe Grape::Middleware::Versioner do
  let(:klass) { described_class }

  it 'recognizes :path' do
    expect(klass.using(:path)).to eq(Grape::Middleware::Versioner::Path)
  end

  it 'recognizes :header' do
    expect(klass.using(:header)).to eq(Grape::Middleware::Versioner::Header)
  end

  it 'recognizes :param' do
    expect(klass.using(:param)).to eq(Grape::Middleware::Versioner::Param)
  end

  it 'recognizes :accept_version_header' do
    expect(klass.using(:accept_version_header)).to eq(Grape::Middleware::Versioner::AcceptVersionHeader)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-1.8.0 spec/grape/middleware/versioner_spec.rb
grape-1.7.1 spec/grape/middleware/versioner_spec.rb
grape-1.7.0 spec/grape/middleware/versioner_spec.rb