Skip to content

Instantly share code, notes, and snippets.

@AhmedNadar
Last active October 7, 2015 09:48
Show Gist options
  • 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'
@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