Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing specs #500

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Fix failing specs #500

merged 4 commits into from
Apr 25, 2024

Conversation

keram
Copy link
Contributor

@keram keram commented Jun 10, 2022

This PR contains fixes for errors that I have encounter when after bundle install
tried to run bundle exec rspec on the project.

The first failure is also present in build for example https://travis-ci.org/github/zipmark/rspec_api_documentation/jobs/762134473

keram added 4 commits June 10, 2022 15:31
Why:
Trying run the specs on vanilla machine produces error:
```
resource.rb:10:in `block in define_action: undefined method extract_options! for ["/path"]:Array (NoMethodError)
```
Why:
Trying to run specs with the old version using `bundle exec rspec` leads to an error:
```
tried to create Proc object without a block
faraday-0.9.2/lib/faraday/options.rb:153:in new:
tried to create Proc object without a block (ArgumentError)
...
../http_test_client.rb:2:in require
```
Why:
Fixes error when running specs `bundle exec (/home/m/.rbenv/versions/3.1.0/bin/rspec)
bundle exec rspec spec/dsl_spec.rb`
```
NoMethodError:
undefined method `stringify_keys for {:name=>"Friday Order"}:Hash
...
dsl/endpoint.rb:171:in `block in extra_params
```
Why:
Given specs fails on expecting `description` field being empty while
in current version it contains capitalised version of `name` attribute.
```
       expected: [{:required=>false, :name=>"description", :description=>nil, :properties_description=>"optional"}]
            got: [{:required=>false, :name=>"description", :description=>"Description", :properties_description=>"optional"}]
```
@bf4 bf4 mentioned this pull request Apr 25, 2024
@bf4 bf4 merged commit 825cebd into zipmark:master Apr 25, 2024
@bf4
Copy link
Contributor

bf4 commented Apr 25, 2024

merged it, but should have squashed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants