Sha256: 3259e6eb364b603b8fc1825c8440d7bddd3521fdffbc843bdc60b1dbf17ccb29

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe GrapeApiary::Route do
  include_context 'configuration'

  let(:routes) { GrapeApiary::Blueprint.new(SampleApi).routes }

  subject { routes.first }

  it 'adds a name helper to routes' do
    expect(subject.route_name).to eq('widgets')
  end

  it 'adds a path helper without format' do
    expect(subject.route_path_without_format).to eq('/widgets')
  end

  it 'adds a type helper' do
    expect(subject.route_type).to eq('collection')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grape-apiary-0.1.2 spec/grape-apiary/route_spec.rb
grape-apiary-0.1.1 spec/grape-apiary/route_spec.rb
grape-apiary-0.1.0 spec/grape-apiary/route_spec.rb
grape-apiary-0.0.4 spec/grape-apiary/route_spec.rb
grape-apiary-0.0.3 spec/grape-apiary/route_spec.rb