blob: 43b24cba21ce4d0947e9e429a2928ce9f6151762 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require "abstract_unit"
class ScreenshotHelperTest < ActiveSupport::TestCase
def test_driver_support_for_screenshots
ActionSystemTest.driver = :rails_selenium_driver
assert ActionSystemTest.driver.supports_screenshots?
ActionSystemTest.driver = :rack_test
assert_not ActionSystemTest.driver.supports_screenshots?
ActionSystemTest.driver = :selenium
assert ActionSystemTest.driver.supports_screenshots?
ActionSystemTest.driver = :webkit
assert ActionSystemTest.driver.supports_screenshots?
ActionSystemTest.driver = :poltergeist
assert ActionSystemTest.driver.supports_screenshots?
end
end
|