3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/volt/spec/sauce_labs.rb', line 3
def setup_sauce_labs
require 'sauce'
require 'sauce/capybara'
Sauce.config do |c|
if ENV['OS']
c[:browsers] = [
[ENV['OS'], ENV['USE_BROWSER'], ENV['VERSION']]
]
else
c[:browsers] = [
['Windows 8.1', 'Internet Explorer', '11'],
['Windows 8.0', 'Internet Explorer', '10'],
['Windows 7.0', 'Internet Explorer', '9'],
]
end
c[:start_local_application] = false
end
Capybara.default_driver = :sauce
Capybara.javascript_driver = :sauce
end
|