Sha256: 7ffaa64cb8615476c6843ec61b43e90bab1f6c8b0180c46d4511bed02417649c

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Grape::Exceptions::InvalidVersionerOption do
  describe "#message" do
    let(:error) do
      described_class.new("headers")
    end

    it "contains the problem in the message" do
      expect(error.message).to include(
        "Unknown :using for versioner: headers"
      )
    end

  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
grape-security-0.8.0 spec/grape/exceptions/invalid_versioner_option_spec.rb
grape-0.9.0 spec/grape/exceptions/invalid_versioner_option_spec.rb
grape-0.8.0 spec/grape/exceptions/invalid_versioner_option_spec.rb