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