Could not find generator rspec:install.

后端 未结 11 772
一向
一向 2021-01-01 08:03

I\'m trying to follow this tutorial here: http://railstutorial.org/chapters/static-pages#top

When I run:

$ rails generate rspec:install

11条回答
  •  没有蜡笔的小新
    2021-01-01 08:48

    By default I had only 'rspec-rails' in my gemfile, and so bundler installed rspec-rails 1.x (some prehistoric version) for some reason. After I modified my gemfile to have gem 'rspec-rails', '~>3.0' and ran bundle update it ran fine.

提交回复
热议问题