summaryrefslogtreecommitdiff
path: root/test/integration/os_detection_test.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2014-02-07 07:51:12 -0800
committerjessib <jessib@riseup.net>2014-02-07 07:51:12 -0800
commit393abdefeeed2e9653e22c85b5d1c617003e95a9 (patch)
tree8351cc3a82c7c030f07bd494c2c1998dc19d9462 /test/integration/os_detection_test.rb
parentcbcd4d388dec048be3d3f66c1b909515d3176ead (diff)
parent58a36ae079f9103f2aa18da48d5ea2a18aae938c (diff)
Merge pull request #137 from azul/test/fix-red-ci
Test/fix red ci
Diffstat (limited to 'test/integration/os_detection_test.rb')
-rw-r--r--test/integration/os_detection_test.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/integration/os_detection_test.rb b/test/integration/os_detection_test.rb
index cb254aa..6d9a648 100644
--- a/test/integration/os_detection_test.rb
+++ b/test/integration/os_detection_test.rb
@@ -2,19 +2,15 @@ require 'test_helper'
class OsDetectionTest < BrowserIntegrationTest
- setup do
- Capybara.current_driver = Capybara.javascript_driver
- end
-
test "old windows shows deactivated download" do
- page.driver.headers = { "User-Agent" => "Win98" }
+ page.driver.add_headers "User-Agent" => "Win98"
visit '/'
assert_selector "html.oldwin"
assert has_text? "not available"
end
test "android shows android download" do
- page.driver.headers = { "User-Agent" => "Android" }
+ page.driver.add_headers "User-Agent" => "Android"
visit '/'
assert_selector "html.android"
assert has_no_text? "not available"