Thoughts Heap

A Blog by Roman Gonzalez.-

RSS
Mar
17th
Tue
permalink

bin/cucumber is not doing what it is supposed to do…

So, in the previous post I was frustrated with merb_cucumber not working. After some digging on the mud, I found out that the binary of the gem is not being used at all (making it obsolete). I don’t mind that, if the cucumber’s gem does the job, it’s ok for me. However it seems the cucumber bin of the cucumber gem is not loading the gems!… this is really annoying.

I had to change my lib/rake/cucumber.rake task like this:

require 'cucumber/rake/task'



cucumber_options = lambda do |t|

# if you want to pass some custom options to cucumber, pass them here

t.binary = Merb.root / 'bin' / 'cucumber'

end



# rest of the cucumber.rake file ...

After doing that, and having the merb_cucumber’s cucumber bin file, everything worked as expected.

I already sent an e-mail telling David the issue, let’s see if I misinformed on something here.

blog comments powered by Disqus