Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app Commit initial episode 03 code Nov 9, 2017
bin Commit initial episode 03 code Nov 9, 2017
config Commit initial episode 03 code Nov 9, 2017
db Commit initial episode 03 code Nov 9, 2017
lib Commit initial episode 03 code Nov 9, 2017
log Commit initial episode 03 code Nov 9, 2017
public Commit initial episode 03 code Nov 9, 2017
spec Adjust spec_helper & rails_helper config Nov 9, 2017
tmp Commit initial episode 03 code Nov 9, 2017
vendor Commit initial episode 03 code Nov 9, 2017
.gitignore Adjust spec_helper & rails_helper config Nov 9, 2017
.rspec
Gemfile Commit initial episode 03 code Nov 9, 2017
Gemfile.lock
README.md Add video & details to Ep 03 README Nov 9, 2017
Rakefile Commit initial episode 03 code Nov 9, 2017
config.ru Commit initial episode 03 code Nov 9, 2017
package.json Commit initial episode 03 code Nov 9, 2017

README.md

Test Driven RSpec - Episode 03, Configuring RSpec

Watch the screencast on YouTube.

The completed code from Episode 03. This episode covers configuring RSpec for use with Ruby on Rails.

This episode goes into detail on:

  • The .rspec file
  • spec/spec_helper.rb, its various options, and when to require it
  • RSpec spec/examples.txt and using --only-failures
  • RSpec output formats
  • RSpec slow test profiling options
  • RSpec test seed and its importance
  • spec/rails_helper.rb, its various options, and when to require it
  • Requiring and including spec/support/ code in specs

Install the dependencies bundle install and run the specs with bin/rspec.

Software used:

  • Ruby 2.4.2
  • Rails 5.1.4
  • RSpec 3.6.1
  • Mac OS
  • iTerm 2
  • Vim
  • Tmux
You can’t perform that action at this time.