Sha256: d0a9092a0684daf7ae1d47d7c2161eac1ced1929d5d68d33fc10b3dc32ef7d6c

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

require 'spec_helper'

describe GrapePathHelpers::RouteDisplayer do
  subject(:route_displayer) { described_class.new }

  describe '#route_attributes' do
    subject { route_displayer.route_attributes }

    it 'returns the list of attributes' do
      is_expected.to include(a_hash_including(
                               route_path: '/:version/ping(.:format)',
                               route_method: 'GET',
                               helper_names: ['beta_1_ping_path'],
                               helper_arguments: []
                             ))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-path-helpers-2.0.1 spec/grape_path_helpers/route_displayer_spec.rb
grape-path-helpers-2.0.0 spec/grape_path_helpers/route_displayer_spec.rb
grape-path-helpers-1.7.1 spec/grape_path_helpers/route_displayer_spec.rb