Skip to content

Commit

Permalink
Remove details and replace spec details with detail
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Dec 28, 2023
1 parent d25344e commit 52cc8fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/grape/router/attribute_translator.rb
Expand Up @@ -8,7 +8,6 @@ class AttributeTranslator
ROUTE_ATTRIBUTES = (%i[
allow_header
anchor
details
endpoint
format
forward_match
Expand Down
8 changes: 4 additions & 4 deletions spec/grape/api_spec.rb
Expand Up @@ -3100,13 +3100,13 @@ def static
]
end

it 'includes details' do
subject.desc 'method', details: 'method details'
it 'includes detail' do
subject.desc 'method', detail: 'method details'
subject.get 'method'
expect(subject.routes.map do |route|
{ description: route.description, details: route.details, params: route.params }
{ description: route.description, detail: route.detail, params: route.params }
end).to eq [
{ description: 'method', details: 'method details', params: {} }
{ description: 'method', detail: 'method details', params: {} }
]
end

Expand Down

0 comments on commit 52cc8fb

Please sign in to comment.