On Friday, July 13, 2012 5:07:19 AM UTC+2, sabat wrote:
Hi: I am just starting a new Rails 3 project and went to use the Reek matcher when I encountered an unexpected exception (below). Before I dive deep and try to find a bug (?) in the Reek libs — am I doing something wrong? Simple example, using ruby-1.9.3p194 in RVM on a Mac, also tested on Centos 5:
1.should == 1
'foo'.should == 'foo'
# here comes failure:
'def equals(other) other.thing == self.thing end'.should_not reek
Running that on my system shows:
reek.fail.rb:8:in `<main>': undefined local variable or method `reek' for main:Object (NameError)
Which is exactly the same error I get running rspec on my Rails app.
Did something change in how you pull in the matchers, or did I stumble onto something that's actually broken? =:-O
You received this message because you are subscribed to the Google
Groups "ruby-reek" group at http://groups.google.com/group/ruby-reek?hl=en