mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-22 23:24:07 +01:00
update cucumber config for capybara
This commit is contained in:
parent
dc0a141f1c
commit
b874b49336
7 changed files with 167 additions and 219 deletions
|
|
@ -13,14 +13,15 @@ require 'cucumber/rails/world'
|
|||
require 'cucumber/rails/active_record'
|
||||
require 'cucumber/web/tableish'
|
||||
|
||||
require 'webrat'
|
||||
require 'webrat/core/matchers'
|
||||
|
||||
Webrat.configure do |config|
|
||||
config.mode = :rails
|
||||
config.open_error_files = false # Set to true if you want error pages to pop up in the browser
|
||||
end
|
||||
|
||||
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 defaults to XPath selectors rather than Webrat's default of CSS3. In
|
||||
# order to ease the transition to Capybara we set the default here. If you'd
|
||||
# prefer to use XPath just remove this line and adjust any selectors in your
|
||||
# steps to use the XPath syntax.
|
||||
Capybara.default_selector = :css
|
||||
|
||||
# If you set this to false, any error raised from within your app will bubble
|
||||
# up to your step definition and out to cucumber unless you catch it somewhere
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue