We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've followed the guide and this is the result. Running specs with rake spec:requests it works correctly.
rake spec:requests
Running specs with rspec spec/requests the result is:
rspec spec/requests
Failure/Error: subject { Apivore::SwaggerChecker.instance_for('/swagger.json') } NameError: uninitialized constant Apivore
I've tried to require apivore inside my _spec and the error was:
undefined method `application' for Rails:Module
I've followed the instructions here #75 adding, also, require 'rails' and the error was:
require 'rails'
RuntimeError: Unable to perform GET request for swagger json: /swagger.json - undefined method `call' for nil:NilClass.
I need to require something more?
The text was updated successfully, but these errors were encountered:
Have you added type: :apivore to your top describe block? That was producing the uninitialized constant error for me.
type: :apivore
uninitialized constant error for me
Also you should add require "apivore" to either spec_helper.rb or rails_helper.rb (based on what you are requiring in the spec file).
require "apivore"
spec_helper.rb
rails_helper.rb
Sorry, something went wrong.
Had this same issue using Rails.
Using require "rails_helper" solved it for me.
require "rails_helper"
No branches or pull requests
I've followed the guide and this is the result.
Running specs with
rake spec:requests
it works correctly.Running specs with
rspec spec/requests
the result is:I've tried to require apivore inside my _spec and the error was:
I've followed the instructions here #75 adding, also,
require 'rails'
and the error was:I need to require something more?
The text was updated successfully, but these errors were encountered: