开发者

How come I am not able to run my cucumber?

开发者 https://www.devze.com 2023-03-17 11:22 出处:网络
I am a newbie for RoR, and I am taking a look into BDD with cucumber during these days. However, I am stock by a trivial problem. I have completely operated according to this post: http://www.mattvs

I am a newbie for RoR, and I am taking a look into BDD with cucumber during these days.

However, I am stock by a trivial problem. I have completely operated according to this post: http://www.mattvsworld.com/blog/2010/02/ruby-1-9-rails-2-3-5-and-cucumber/ But I still get this:

Couldn't find 'cucumber' generator

Then I uninstalled/installed cucumber-rails a lot of rounds with sudo and still get this:

Couldn't find 'cucumber' generator

I am spe开发者_运维技巧culating that my cucumber-rails is not in the path. Since I get this with cucumber-rails -version

-bash: cucumber-rails: command not found

Can anyone tell me what I should do now?


I have solved the problem. It turns out that cucumber-rails (1.0.2) does not work very well with Rails 2.3.5. It has to be Rails 3.x.x.

So, once I reverted cucumber-rails back to v 0.3.2. It worked like a charm.


Very useful information @Winston Chen. The suggestion to Revert cucumber-rails to v 0.3.2 solved a similar problem for me for a Rails 2.3.12 app.

To solve I simply did the following gem uninstall cucumber-rails -v 1.0.2 and then using bundler installed gem 'cucumber-rails', '~> 0.3.2'

0

精彩评论

暂无评论...
验证码 换一张
取 消