Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capybara extensions automagically loaded
- Loading branch information
Showing
5 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Sets up the Rails environment for Cucumber | ||
ENV["RAILS_ENV"] ||= "cucumber" | ||
require File.expand_path(File.dirname(__FILE__) + '/app/config/environment') | ||
|
||
require 'cucumber/formatter/unicode' # Remove this line if you don't want Cucumber Unicode support | ||
require 'cucumber/rails/world' | ||
require 'cucumber/rails/rspec' | ||
require 'cucumber/rails/active_record' | ||
require 'cucumber/web/tableish' | ||
|
||
|
||
# Whether or not to allow Rails to rescue errors and render them on | ||
# an error page. Default is false, which will cause an error to be | ||
# raised. | ||
# | ||
# If you leave this to false, you can turn on Rails rescuing on a | ||
# per-scenario basis, simply tagging it with @allow-rescue | ||
ActionController::Base.allow_rescue = false | ||
|
||
# Whether or not to run each scenario within a database transaction. | ||
# | ||
# If you leave this to true, you can turn off traqnsactions on a | ||
# per-scenario basis, simply tagging it with @no-txn | ||
Cucumber::Rails::World.use_transactional_fixtures = true |
This file contains 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
This file contains 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