Cucumber Rails 3.1 uninitialized constant ActionController::Dispatcher (NameError)

怎甘沉沦 提交于 2019-11-29 14:02:19

I had a similar issue to this and I believe its RVM that is causing the problem.

Basically its the dependencies Ruby is compiled against; using rvm notes

sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev

The above is for MRI

If any of these is not installed, then install them, then uninstall/install 1.9.2-p180

Hope that helps

Masatoshi Iwasaki

I had a same issue and solved upgrading cucumber-rails to 1.0.5. Try this in Gemfile.

gem "cucumber-rails", "1.0.5"

And rerun installer

script/rails g cucumber:install your-language --your-options

For me the magic was require: false

gem 'cucumber-rails', '~>1.4.0', require: false
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!