diff --git a/CHANGELOG.md b/CHANGELOG.md index b9f477da..e55b8a66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ #### Fixes +* [#509](https://github.com/ruby-grape/grape-swagger/pull/509), [#529](https://github.com/ruby-grape/grape-swagger/pull/529): Making parent-less routes working - [@contributor](https://github.com/mur-wtag). * Your contribution here. ### 0.25.0 (October 31, 2016) @@ -36,7 +37,7 @@ * [#497](https://github.com/ruby-grape/grape-swagger/pull/497): Use ruby-grape-danger in Dangerfile - [@dblock](https://github.com/dblock). #### Fixes -* [#509](https://github.com/ruby-grape/grape-swagger/pull/509): Making parent-less routes working - [@contributor](https://github.com/mur-wtag). + * [#503](https://github.com/ruby-grape/grape-swagger/pull/503): Corrects exposing of inline definitions - [@LeFnord](https://github.com/LeFnord). * [#494](https://github.com/ruby-grape/grape-swagger/pull/494): Header parametes are now included in documentation when body parameters have been defined - [@anakinj](https://github.com/anakinj). * [#505](https://github.com/ruby-grape/grape-swagger/pull/505): Combines namespaces with their mounted paths to allow APIs with specified mount_paths - [@KevinLiddle](https://github.com/KevinLiddle). diff --git a/spec/swagger_v2/parent_less_namespace.rb b/spec/swagger_v2/parent_less_namespace.rb index 1446ae67..150ef3c8 100644 --- a/spec/swagger_v2/parent_less_namespace.rb +++ b/spec/swagger_v2/parent_less_namespace.rb @@ -32,8 +32,8 @@ def app context 'raises error' do specify do - allow_any_instance_of(ParentLessApi). - to receive(:extract_parent_route).with(route_name).and_return(':animal') # BUT IT'S NOT STUBBING, CAUSE IT'S A PRIVATE METHODS + allow_any_instance_of(ParentLessApi) + .to receive(:extract_parent_route).with(route_name).and_return(':animal') # BUT IT'S NOT STUBBING, CAUSE IT'S A PRIVATE METHODS expect { subject }.to raise_error NoMethodError end end