spec/lib/operation_id_spec.rb in grape-swagger-0.32.1 vs spec/lib/operation_id_spec.rb in grape-swagger-0.33.0

- old
+ new

@@ -45,8 +45,11 @@ expect(subject.build(route, '/bar-foo{id}')).to eql 'getBarFooId' end it 'GET with path /simple_test/bar-foo{id}' do expect(subject.build(route, '/simple_test/bar-foo{id}')).to eql 'getSimpleTestBarFooId' end + it 'GET path with optional format' do + expect(subject.build(route, 'foo(.{format})')).to eql 'getFoo(.Format)' + end end end end