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

warnings when running tests #1582

Closed
thogg4 opened this issue Feb 24, 2017 · 3 comments · Fixed by #1632
Closed

warnings when running tests #1582

thogg4 opened this issue Feb 24, 2017 · 3 comments · Fixed by #1632
Labels

Comments

@thogg4
Copy link
Contributor

thogg4 commented Feb 24, 2017

I imagine I am missing a config option or something, but I can't figure out why I am seeing these errors when running tests using Rack::Test against a grape app:

/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/validations/validators/values.rb:21: warning: instance variable @excepts not initialized
/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/validations/validators/values.rb:31: warning: instance variable @proc not initialized
/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/validations/validators/values.rb:21: warning: instance variable @excepts not initialized
/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/validations/validators/values.rb:21: warning: instance variable @excepts not initialized
/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/validations/validators/values.rb:31: warning: instance variable @proc not initialized
/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/dsl/inside_route.rb:237: warning: instance variable @file not initialized
/ruby/gems/2.3.0/bundler/gems/grape-4004faf0bf46/lib/grape/dsl/inside_route.rb:147: warning: instance variable @status not initialized

Anyone have any idea about how to get rid of these?

@dblock
Copy link
Member

dblock commented Feb 25, 2017

These are actual things we should fix in Grape.

@dblock dblock added the bug? label Feb 25, 2017
@terry90
Copy link

terry90 commented May 9, 2017

Someone working on it ? What is the cause of all this ?

@dblock
Copy link
Member

dblock commented May 9, 2017

Crickets, so no, nobody is working on these. And they are uninitialized scoped variables, we assume they are nil.

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

Successfully merging a pull request may close this issue.

3 participants