Sha256: 5be7b9bb49cfbea4930e89a23244ebb868b371995fcc7b3dfeae5512a516eb3e

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 Bytes

Contents

require 'spec_helper'

describe GrapeMarkdown::Route do
  include_context 'configuration'

  let(:routes) { GrapeMarkdown::Document.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

7 entries across 7 versions & 1 rubygems

Version Path
grape-markdown-0.0.7 spec/grape-markdown/route_spec.rb
grape-markdown-0.0.6 spec/grape-markdown/route_spec.rb
grape-markdown-0.0.5 spec/grape-markdown/route_spec.rb
grape-markdown-0.0.4 spec/grape-markdown/route_spec.rb
grape-markdown-0.0.3 spec/grape-markdown/route_spec.rb
grape-markdown-0.0.2 spec/grape-markdown/route_spec.rb
grape-markdown-0.0.1 spec/grape-markdown/route_spec.rb