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