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

Warning messages with RSpec 'config.warnings=true' on #4

Closed
zhenkyle opened this issue Jan 27, 2017 · 0 comments
Closed

Warning messages with RSpec 'config.warnings=true' on #4

zhenkyle opened this issue Jan 27, 2017 · 0 comments

Comments

@zhenkyle
Copy link

When setting this Rspec option

RSpec.configure do |config|
  config.warnings = true
end

and run specs which include EventedSpec::SpecHelper, I got these warning messages

zhenkyle@hp870:~/Documents/Github/shadowsocks-ruby$ bin/rspec spec/unit/connections/connection_spec.rb
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/spec_helper.rb:129: warning: `*' interpreted as argument prefix
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/spec_helper.rb:137: warning: `*' interpreted as argument prefix
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/ext/amqp.rb:25: warning: `&' interpreted as argument prefix
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/em_spec.rb:17: warning: shadowing outer local variable - args
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/amqp_spec.rb:18: warning: shadowing outer local variable - args
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/coolio_spec.rb:17: warning: shadowing outer local variable - args

Shadowsocks::Connections::Connection
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/spec_helper.rb:45: warning: instance variable @evented_spec_metadata not initialized
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/evented_example/em_example.rb:43: warning: instance variable @spec_timer not initialized
  can receive data in process_hook
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/evented_example/em_example.rb:43: warning: instance variable @spec_timer not initialized
  can receive data with specific length in process_hook
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/evented_example/em_example.rb:43: warning: instance variable @spec_timer not initialized
  can receive data until some str appears in process_hook
/home/zhenkyle/.rvm/gems/ruby-2.3.3/gems/evented-spec-1.0.0.beta2/lib/evented-spec/evented_example/em_example.rb:43: warning: instance variable @spec_timer not initialized
  can send data in process_hook
  can send data with pressure control

Finished in 0.00472 seconds (files took 0.20302 seconds to load)
5 examples, 0 failures
michaelklishin added a commit that referenced this issue Jan 27, 2017
michaelklishin added a commit that referenced this issue Apr 28, 2017
Fix #6, my mistakes in Fix #4
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

No branches or pull requests

1 participant