why we have to install capybara/rspec . What is benefit of using this gems for this Odot app?
Maciej Czuchnowski36,433 Points
It's an alternative testing suite for Rails apps. The default one uses minitest and this one uses RSpec. It's just a matter of preference, some companies/developers prefer the former, some prefer the latter (http://words.steveklabnik.com/rails-has-two-default-stacks). I personally like RSpec with Capybara tests because they read more naturally. The creator of Rails seems to hate RSpec (http://www.rubyinside.com/dhh-offended-by-rspec-debate-4610.html).
Clarissa LaoPro Student 2,849 Points
I have the same problem, I just resolved it on my mac.
If "could not find gem error" , go directly to the site and copy and paste code to be placed on Gemfile and on Sumblime text, Installing manually: eg:
- to install rspec-rails go to: https://rubygems.org/gems/rspec-rails/versions/3.2.1
- pick out a version you want, copy code for Gemfile to the gemfile : gem 'rspec-rails', '~> 3.2.1'
- copy code for install and paste to terminal: gem install rspec-rails -v 3.2.1
- try to "bundle" on terminal again
you can repeat this for the capybara using google "install capybara gem"