[rspec-devel] [ rspec-Bugs-7101 ] warning: useless use of == in void context

noreply at rubyforge.org noreply at rubyforge.org
Wed Dec 20 19:55:46 EST 2006


Bugs item #7101, was opened at 2006-12-05 06:17
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7101&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Suraj Kurapati (snk)
Assigned to: Nobody (None)
Summary: warning: useless use of == in void context

Initial Comment:
The new "should ==" syntax of rSpec (versions > 0.7.0) is causing these warnings:

  warning: useless use of == in void context

In particular, each line of the following code causes the above warning:

  L0d_cache.l0d_p_rd_nack.intVal.should == 1
  L0d_cache.l0d_l1_req.intVal.should == 1

Finally, I am seeing these warnings because I always run ruby with the '-w' option: 'ruby -w'

Thanks for your consideration.

----------------------------------------------------------------------

>Comment By: Suraj Kurapati (snk)
Date: 2006-12-21 00:55

Message:
Alright, I'm running my specs without -w for now.

----------------------------------------------------------------------

Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2006-12-05 07:54

Message:
I don't think there is anything we can do about that - except for running without the -w flag. What do you think?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7101&group_id=797


More information about the rspec-devel mailing list