Class: TheDude::Dsl

Inherits:
Object
  • Object
show all
Includes:
Capybara::DSL
Defined in:
lib/the_dude-web.rb

Overview

TheDude is configured to use Capybara This means that you can use Capybara DSL shortcuts in your dude commands

By default this will use the selenium driver however other Capybara drivers can be configured as per the instructions in the [Capybara readme](github.com/jnicklas/capybara)

Examples:

command 'a web script' do
  Capybara.app_host = 'http://www.google.com'
  visit '/'
end