photomix/features/support/env.rb

19 lines
724 B
Ruby
Raw Permalink Normal View History

2009-06-03 22:12:25 +02:00
# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] ||= "cucumber"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'cucumber/rails/world'
require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support
Cucumber::Rails.use_transactional_fixtures
Cucumber::Rails.bypass_rescue # Comment out this line if you want Rails own error handling
# (e.g. rescue_action_in_public / rescue_responses / rescue_from)
require 'webrat'
Webrat.configure do |config|
config.mode = :rails
end
#require 'cucumber/rails/rspec'
#require 'webrat/core/matchers'
#require 'factory_girl'
require "#{Rails.root}/spec/factories"