Sha256: e25a2ec579a8eb7cb20bf326e6f9f750df2e2a19a278e4d6d771aefd21a13af6
Contents?: true
Size: 475 Bytes
Versions: 2
Compression:
Stored size: 475 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.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-apiary-1.0.0 | spec/grape-apiary/route_spec.rb |
grape-apiary-0.2.0 | spec/grape-apiary/route_spec.rb |