I’m not sure if this is in cucumber really, but just in case some of you guys have a clue on how to fix this. Basically, my tests suddenly stopped working and when I checked, it showed this error:
C:/Vendor/Ruby187/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.0/lib/cucumber/rails3.rb:3 in 'dirname': can't convert nil into String (TypeError)
Yes, I first rolled my eyes and just cursed Windows but I tried it on my Mac and I got the same:
/Users/eumir/.rvm/gems/ruby-1.8.7-p174@mygemset/gems/cucumber-rails-0.5.2/lib/cucumber/rails3.rb:3:in `dirname': can't convert nil into String (TypeError)
Weird though, its in different cucumber rails versions, I googled and the first result shows it is bunder’s fault(although I can’t decipher what the gist is about…maybe just copy pasted stuff?) and weirdest of all, Cucumber IS running and I run into this problem while running rspec spec.
The 3 clues below point out that it’s not cucumber’s fault, but why does it blame cucumber? IF any of you can shed a clue as to why this is happening, you’ll be saving me from a few more hours of pain.
As aslak says in his reply:
http://groups.google.com/group/cukes/msg/803836e9f6e7f1be
I just needed to upgrade cucumber-rails. @Ewout did point me in the right direction too so he also deserves a +1 🙂