Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (21 sloc) 0.491 kB
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
1 require 'capybara'
f5552df Move matchers into folder
Jonas Nicklas and Nicklas Ramhöj authored
2 require 'capybara/rspec/matchers'
ac7d044 Changed to use selenium-webdriver and it works!
Jonas Nicklas and Kevin Fitzpatrick authored
3
31f1ac3 @jnicklas Separate DSL out into a module
authored
4 World(Capybara::DSL)
6d409dc @jnicklas Use customer RSpec matchers in cucumber
authored
5 World(Capybara::RSpecMatchers)
c53e663 Added some more cucumbery goodness
Theo Hultberg and Jonas Nicklas authored
6
a1c8453 @jnicklas Clean up sessions after under cucumber, to be consistent with rspec
authored
7 After do
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
8 Capybara.reset_sessions!
a1c8453 @jnicklas Clean up sessions after under cucumber, to be consistent with rspec
authored
9 end
10
11 Before do
2cfb733 @bjornblomqvist Moved session cleanup to before the test so that i still have browser…
bjornblomqvist authored
12 Capybara.use_default_driver
c53e663 Added some more cucumbery goodness
Theo Hultberg and Jonas Nicklas authored
13 end
14
04360cc @jnicklas Reflect on tags, rather than hardcoding
authored
15 Before '@javascript' do
6b099a4 renamed to capybara
Theo Hultberg and Jonas Nicklas authored
16 Capybara.current_driver = Capybara.javascript_driver
c53e663 Added some more cucumbery goodness
Theo Hultberg and Jonas Nicklas authored
17 end
18
04360cc @jnicklas Reflect on tags, rather than hardcoding
authored
19 Before do |scenario|
20 scenario.source_tag_names.each do |tag|
21 driver_name = tag.sub(/^@/, '').to_sym
22 if Capybara.drivers.has_key?(driver_name)
23 Capybara.current_driver = driver_name
24 end
25 end
be50d81 @jnicklas Added more tags to cucumber
authored
26 end
Something went wrong with that request. Please try again.