rspec testing

rails new myapp –skip-test-unit

cd myapp

When you’re not going ‘minitest’ way, then you don’t need test directory. And

https://github.com/rspec/rspec-rails

https://relishapp.com/rspec/rspec-rails/docs

https://relishapp.com/rspec/rspec-rails/docs/generators

https://github.com/jnicklas/capybara

follow readme & documentation! For now (when I’m typing this) it says:

# in 'Gemfile' file
group :development, :test do
  gem 'rspec-rails', '~> 3.0'
end

group :test do
  gem 'capybara'
end

bundle install

rails generate rspec:install

# in 'spec/rails_helper.rb' file
require 'capybara/rails'

Now I start, and will get back to you.

 
1
Kudos
 
1
Kudos

Now read this

How do you install ruby before 1.9.3?

How do you install ruby before 1.9.3? rbenv install --list rbenv install 1.9.2-p180 old version error. Need apple-gcc42, $ ls -l /usr/bin | grep gcc -rwxr-xr-x 1 root wheel 14224 Apr 8 14:45 gcc lrwxr-xr-x 1 root wheel 5 Apr 8 14:45... Continue →