Sha256: 2ac1fd5c4c846929185fe0ade09af57bc8ddc9b542383dcca1d7b0602a666c04

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Grape::Exceptions::MissingGroupType do
  describe '#message' do
    subject { described_class.new.message }

    it { is_expected.to include 'group type is required' }
  end

  describe 'deprecated Grape::Exceptions::MissingGroupTypeError' do
    subject { Grape::Exceptions::MissingGroupTypeError.new }

    it 'puts a deprecation warning' do
      expect(Warning).to receive(:warn) do |message|
        expect(message).to include('`Grape::Exceptions::MissingGroupTypeError` is deprecated')
      end

      subject
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-1.7.1 spec/grape/exceptions/missing_group_type_spec.rb
grape-1.7.0 spec/grape/exceptions/missing_group_type_spec.rb