Created
May 27, 2010 17:24
-
-
Save christianhager/416079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] ||= "test" | |
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support | |
require 'cucumber/rails/rspec' | |
require 'cucumber/rails/world' | |
#require 'cucumber/rails/active_record' | |
require 'cucumber/web/tableish' | |
require 'capybara/rails' | |
require 'capybara/cucumber' | |
require 'capybara/session' | |
require 'cucumber/rails/capybara_javascript_emulation' # Lets you click links with onclick javascript handlers without using @culerity or @javascript | |
Capybara.default_selector = :css | |
ActionController::Base.allow_rescue = false | |
Before do | |
Mongoid.master.collections.each(&:drop) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment