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

Unused variable reports in rake tests minitests #24

Open
DouglasAllen opened this issue Nov 8, 2014 · 1 comment
Open

Unused variable reports in rake tests minitests #24

DouglasAllen opened this issue Nov 8, 2014 · 1 comment

Comments

@DouglasAllen
Copy link

First the warning:
/home/douglas/.rbenv/versions/1.9.3-debian/gems/gems/lumberjack-1.0.9/lib/lumberjack/device/size_rolling_log_file.rb:41: warning: assigned but unused variable - e

I've made this go away with this line 42 inserted:
e.send :display
does something with it even if it never shows up anywhere.
That works for me untill I reinstall things and I have your gem as original again.
👯

@DouglasAllen
Copy link
Author

Do you want to see what I'm testing?
douglas@kb9agt-kali:~/MyRuby/equationoftime$ bundle exec rake
mkdir -p tmp/i486-linux/eot/1.9.3
cd tmp/i486-linux/eot/1.9.3
/usr/bin/ruby1.9.1 -I. ../../../../ext/eot/extconf.rb
creating Makefile
cd -
cd tmp/i486-linux/eot/1.9.3
make
compiling ../../../../ext/eot/ceot.c
compiling ../../../../ext/eot/eot.c
linking shared-object eot/eot.so
cd -
mkdir -p tmp/i486-linux/stage/lib/eot
install -c tmp/i486-linux/eot/1.9.3/eot.so lib/eot/eot.so
cp tmp/i486-linux/eot/1.9.3/eot.so tmp/i486-linux/stage/lib/eot/eot.so
/usr/bin/ruby1.9.1 -w -Ilib:bin:test:. -e 'require "rubygems"; require "minitest/autorun"; require "test/eot/displays_spec.rb"; require "test/eot/times_spec.rb"; require "test/eot/geo_spec.rb"; require "test/eot/angles_spec.rb"; require "test/eot/aliased_angles_spec.rb"; require "test/eot/aliased_displays_spec.rb"; require "test/eot/init_spec.rb"; require "test/eot/constants_spec.rb"; require "test/eot/aliased_utilities_spec.rb"' --
/home/douglas/.rbenv/versions/1.9.3-debian/gems/gems/minitest-5.4.2/lib/minitest.rb:46: warning: (...) interpreted as grouped expression
/home/douglas/.rbenv/versions/1.9.3-debian/gems/gems/lumberjack-1.0.9/lib/lumberjack/device/size_rolling_log_file.rb:41: warning: assigned but unused variable - e
Run options: --seed 54841

Running:

......................................................................................................................................................................................................

Finished in 0.224760s, 880.9381 runs/s, 974.3709 assertions/s.

198 runs, 219 assertions, 0 failures, 0 errors, 0 skips
/usr/bin/ruby1.9.1 -I"lib:test" -I"/home/douglas/.rbenv/versions/1.9.3-debian/gems/gems/rake-10.3.2/lib" "/home/douglas/.rbenv/versions/1.9.3-debian/gems/gems/rake-10.3.2/lib/rake/rake_test_loader.rb"

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