Skip to content

Instantly share code, notes, and snippets.

@mischa
Created June 2, 2009 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mischa/122388 to your computer and use it in GitHub Desktop.
Save mischa/122388 to your computer and use it in GitHub Desktop.
# Relating to: https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/332-cucumber-server
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'cucumber/rails/world'
require 'cucumber/formatters/unicode' # Comment out this line if you don't want Cucumber Unicode support
Cucumber::Rails.use_transactional_fixtures
require 'webrat'
require 'webrat/core/matchers'
require 'spec'
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false
end
require 'cucumber/rails/rspec'
require 'webrat/rspec-rails'
require 'email_spec/cucumber'
require 'cucumber_rails_debug/steps'
require File.expand_path(RAILS_ROOT + "/spec/blueprints")
ApplicationController.send(:public, :logged_in?, :current_user, :current_account)
require 'spork'
Spork.prefork do
puts "I'm loading all the heavy stuff..."
end
Spork.each_run do
puts "I'm loading the stuff just for this run..."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment