you need to run spork --bootstrap
and after inserting some configuration into your spec_helper.rb file, so spork knows about your rail configuration.
As you use RSpec, you can try adding the following code to your spec_helper file:
require 'rubygems' require 'spork' Spork.prefork do ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} RSpec.configure do |config| config.mock_with :rspec config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true
source share