[rspec-users] Configuring RSpec 2

Kristian Mandrup kmandrup at gmail.com
Tue Mar 2 08:42:28 EST 2010

# spec_helper.rb

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require '...
require 'rspec'
require 'rspec/autorun'

# doesn't work: just remove it and it works.
# But how would you configure the RSpec Runner in RSpec 2 then?
Rspec::Runner.configure do |config|
  # config here

Then I found this:

Rspec::Core.configure do |c|
  # config here

Which works :)

More information about the rspec-users mailing list