現在
Specに必要なファイル群を生成させようと思い
下記を実行するとエラーがでます
rails generate rspec:install
vagrant@vagrant-ubuntu-trusty:~/workspace/achieve$ rails generate rspec:install Running via Spring preloader in process 2899 Expected boolean default value for '--markerb'; got :erb (string) Expected string default value for '--rc'; got false (boolean) Expected string default value for '--rc'; got false (boolean) Expected string default value for '--helper'; got true (boolean) Expected string default value for '--assets'; got true (boolean) Could not find generator 'rspec:install'. Maybe you meant 'devise:install'ã¨'responders:install' or 'bootstrap:install' Run `rails generate --help` for more options. vagrant@vagrant-ubuntu-trusty:~/workspace/achieve$
rspec:installが見つからないとでているのですが、この理由がわかりません
ぐぐった所、下記のとおりいろいろでるのでためしているのですがうまくいきません
http://d.hatena.ne.jp/koda_hd28v/20110216/1297858437
http://yuuxxxx.hatenablog.com/entry/2012/10/14/173251
原因としてはRspecのインストールができないとの事ですのでgemfileが影響していると思うの
ですが、よくわかりません(><)なにかお知恵を拝借する事はできないでしょうか?
ちなみにgemfileは下記の通りになります
source 'https://rubygems.org' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.2.3' # Use postgresql as the database for Active Record gem 'pg' # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '~> 4.1.0' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby # Use jquery as the JavaScript library gem 'jquery-rails' # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks gem 'turbolinks' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates the API under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use Unicorn as the app server gem 'unicorn' gem 'fog' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug' # Access an IRB console on exception pages or by using <%= console %> in views gem 'web-console', '~> 2.0' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem 'pry-rails' gem 'better_errors' gem 'capistrano', '3.6.0' gem 'capistrano-bundler' gem 'capistrano-rails' gem 'capistrano-rbenv' gem 'capistrano3-unicorn' end gem 'twitter-bootstrap-rails' gem 'jquery-turbolinks' gem 'rails_12factor', group: :production gem 'devise' gem 'faker' gem 'rails_admin' gem 'cancan' gem 'activeresource' gem 'omniauth' gem 'omniauth-twitter' gem 'omniauth-facebook' gem 'pusher' #image uploader gem 'carrierwave' gem 'rmagick' gem 'dotenv-rails' group :development do gem 'letter_opener_web' gem 'dotenv-rails' end gem 'therubyracer', platforms: :ruby group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug' # Access an IRB console on exception pages or by using <%= console %> in views # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem "rspec-rails" gem "factory_girl_rails" end group :test do gem "capybara" gem "database_cleaner" gem "launchy" gem 'rspec', '2.5.0' end
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/09 15:32
2017/09/09 23:25
2017/09/10 00:36