Configuring RSpec 2

spec_helper.rb

$LOAD_PATH.unshift(File.dirname(FILE))
$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

end

Then I found this:

Rspec::Core.configure do |c|

config here

end

Which works :slight_smile:

On Tue, Mar 2, 2010 at 7:42 AM, Kristian M. [email protected]
wrote:

Rspec::Runner.configure do |config|

config here

end

Then I found this:

Rspec::Core.configure do |c|

config here

end

Which works :slight_smile:

And is deprecated :slight_smile: Use this:

Rspec.configure do |c|

config here

end