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
context 'with static variable access' do before do @@static_variable = 42 subject.helpers do def get_static_variable @@static_variable end end subject.get do get_static_variable end end it 'preserves self' do get '/' expect(last_response.status).to eq 200 expect(last_response.body).to eq '42' end end
1) Grape::API with static variable access preserves self Failure/Error: @@static_variable NameError: uninitialized class variable @@static_variable in #<Module:0x007fb4646c72b0> # ./spec/grape/api_spec.rb:2720:in `get_static_variable' # ./spec/grape/api_spec.rb:2725:in `block (4 levels) in <top (required)>' # ./lib/grape/endpoint.rb:47:in `call'
At least needs to be documented in UPGRADING.
The text was updated successfully, but these errors were encountered:
Spec for issue ruby-grape#836.
66bdd0d
Documented this in UPGRADING in b8b0ef1. Will leave this by design.
Sorry, something went wrong.
No branches or pull requests
At least needs to be documented in UPGRADING.
The text was updated successfully, but these errors were encountered: