From 34614fcc09d155b57a635fa1ae335653db6c4279 Mon Sep 17 00:00:00 2001 From: Yaroslav Savchuk Date: Wed, 12 Sep 2018 23:12:02 +0200 Subject: [PATCH] FIXME --- spec/swagger_v2/nicknamed_api_spec.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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