From ce99e9892dc5f807e072be8161c19f4969b1dace Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 13 Dec 2013 11:13:08 +0100 Subject: minor: rename test --- test/integration/home_test.rb | 24 ------------------------ test/integration/os_detection_test.rb | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 test/integration/home_test.rb create mode 100644 test/integration/os_detection_test.rb diff --git a/test/integration/home_test.rb b/test/integration/home_test.rb deleted file mode 100644 index 126a420..0000000 --- a/test/integration/home_test.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'test_helper' - -class AccountTest < BrowserIntegrationTest - - setup do - Capybara.current_driver = Capybara.javascript_driver - end - - test "old windows shows deactivated download" do - page.driver.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" } - visit '/' - assert_selector "html.android" - assert has_no_text? "not available" - assert_selector "small", text: "Android" - end - -end diff --git a/test/integration/os_detection_test.rb b/test/integration/os_detection_test.rb new file mode 100644 index 0000000..cb254aa --- /dev/null +++ b/test/integration/os_detection_test.rb @@ -0,0 +1,24 @@ +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" } + visit '/' + assert_selector "html.oldwin" + assert has_text? "not available" + end + + test "android shows android download" do + page.driver.headers = { "User-Agent" => "Android" } + visit '/' + assert_selector "html.android" + assert has_no_text? "not available" + assert_selector "small", text: "Android" + end + +end -- cgit v1.2.3