require 'rubygems'
require 'bundler'
Bundler.setup

require 'aruba'

Before do
  this_dir = File.dirname(__FILE__)
  in_current_dir do
    FileUtils.ln_s File.join(this_dir, 'vcr_cucumber_helpers.rb'), 'vcr_cucumber_helpers.rb'
  end
end

if RUBY_VERSION > '1.9.1'
  Before do
    set_env('RUBYOPT', '-I.')
  end
end

require 'rubygems'
require 'bundler'
Bundler.setup

require 'aruba'

Before do
  this_dir = File.dirname(__FILE__)
  in_current_dir do
    FileUtils.ln_s File.join(this_dir, 'vcr_cucumber_helpers.rb'), 'vcr_cucumber_helpers.rb'
  end
end

if RUBY_VERSION > '1.9.1'
  Before do
    set_env('RUBYOPT', '-I.:../../lib')
  end
end

Fix some cukes on 1.9.2.
Fix some cukes on 1.9.2.

Some were failing with "no such file to load -- vcr", so this ensures vcr is on the load path.