diff --git a/spec/swagger_v2/nicknamed_api_spec.rb b/spec/swagger_v2/nicknamed_api_spec.rb index ebda67a8..573f9691 100644 --- a/spec/swagger_v2/nicknamed_api_spec.rb +++ b/spec/swagger_v2/nicknamed_api_spec.rb @@ -3,9 +3,17 @@ require 'spec_helper' describe 'a nicknamed mounted api' do + class Test < Grape::Entity + expose :at do + Time.now + end + end + def app Class.new(Grape::API) do - desc 'Show this endpoint', nickname: 'simple' + desc 'Show this endpoint', nickname: 'simple' do + success Test + end get '/simple' do { foo: 'bar' } end