Sha256: 94f3aa80cfff79b9f939c15fe3c2133b76a973cd7dc726f966cd75f987c1278e

Contents?: true

Size: 632 Bytes

Versions: 11

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

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

  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

11 entries across 11 versions & 2 rubygems

Version Path
grape-1.6.0 spec/grape/middleware/versioner_spec.rb
grape-1.5.3 spec/grape/middleware/versioner_spec.rb
grape-1.5.2 spec/grape/middleware/versioner_spec.rb
grape-1.5.1 spec/grape/middleware/versioner_spec.rb
grape-1.5.0 spec/grape/middleware/versioner_spec.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/grape-1.4.0/spec/grape/middleware/versioner_spec.rb
grape-1.4.0 spec/grape/middleware/versioner_spec.rb
grape-1.3.3 spec/grape/middleware/versioner_spec.rb
grape-1.3.2 spec/grape/middleware/versioner_spec.rb
grape-1.3.1 spec/grape/middleware/versioner_spec.rb
grape-1.3.0 spec/grape/middleware/versioner_spec.rb