Skip to content

Instantly share code, notes, and snippets.

@AhmedNadar
Last active October 7, 2015 09:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedNadar/c7398330438f570bae74 to your computer and use it in GitHub Desktop.
Save AhmedNadar/c7398330438f570bae74 to your computer and use it in GitHub Desktop.
Solution when Spork fails with Rspec

Spork and Rspec

Problem

Using spork4 and rspec 3, when run spork in terminal, it fails and show this following message:

Using RSpec, Rails
Preloading Rails environment
Loading Spork.prefork block...
undefined method `configure' for RSpec:Module (NoMethodError)
/Users/ahmed/projects/bdd/spec/spec_helper.rb:68:in `<top (required)>'

Solution

Add require 'rspec/core' to speck_helper.rb before requireing spork, as below

require 'rubygems'
require 'rspec/core'
require 'spork'
@Socratic1
Copy link

Hey, great work putting this together. I think there might be a typo under 'Solution.' 'speck_helper.rb' should be 'spec_helper.rb.'

@AttyC
Copy link

AttyC commented Oct 7, 2015

Great, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment