Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (22 sloc) 0.514 kb
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
1 require 'capybara'
04360cc @jnicklas Reflect on tags, rather than hardcoding
authored
2
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
3 require 'capybara/dsl'
f5552df Move matchers into folder
Jonas Nicklas and Nicklas Ramhöj authored
4 require 'capybara/rspec/matchers'
ac7d044 Changed to use selenium-webdriver and it works!
Jonas Nicklas and Kevin Fitzpatrick authored
5
31f1ac3 @jnicklas Separate DSL out into a module
authored
6 World(Capybara::DSL)
6d409dc @jnicklas Use customer RSpec matchers in cucumber
authored
7 World(Capybara::RSpecMatchers)
c53e663 Added some more cucumbery goodness
Theo Hultberg and Jonas Nicklas authored
8
9 After do
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
10 Capybara.reset_sessions!
c53e663 Added some more cucumbery goodness
Theo Hultberg and Jonas Nicklas authored
11 end
12
04360cc @jnicklas Reflect on tags, rather than hardcoding
authored
13 Before '@javascript' do
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
14 Capybara.current_driver = Capybara.javascript_driver
c53e663 Added some more cucumbery goodness
Theo Hultberg and Jonas Nicklas authored
15 end
16
04360cc @jnicklas Reflect on tags, rather than hardcoding
authored
17 Before do |scenario|
18 scenario.source_tag_names.each do |tag|
19 driver_name = tag.sub(/^@/, '').to_sym
20 if Capybara.drivers.has_key?(driver_name)
21 Capybara.current_driver = driver_name
22 end
23 end
be50d81 @jnicklas Added more tags to cucumber
authored
24 end
25
26 After do
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
27 Capybara.use_default_driver
563c9f0 @denro removed database cleaner dependencies
denro authored
28 end
Something went wrong with that request. Please try again.