Skip to content

Commit 7566ddb

Browse files
committed
Fix test expectation to align with PR #87 (hidden attrs removed from required)
1 parent f44e2f1 commit 7566ddb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

spec/issues/962_polymorphic_entity_with_custom_documentation_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,10 @@ class Report < Grape::Entity
111111
})
112112
end
113113

114-
it 'hides optional properties only' do
114+
it 'hides all hidden properties' do
115115
expect(swagger_doc['definitions']['Foo']).to eql({
116116
'type' => 'object',
117-
'properties' => {},
118-
'required' => ['required_prop']
117+
'properties' => {}
119118
})
120119
end
121120
end

0 commit comments

Comments
 (0)