system_test_case_test.rb 395 字节
Newer Older
E
eileencodes 已提交
1
require "abstract_unit"
E
eileencodes 已提交
2

3 4
class DrivenByRackTestTest < ActionDispatch::SystemTestCase
  driven_by :rack_test
E
eileencodes 已提交
5

6 7
  test "uses rack_test" do
    assert_equal :rack_test, Capybara.current_driver
E
eileencodes 已提交
8
  end
9
end
E
eileencodes 已提交
10

11 12 13 14 15
class DrivenBySeleniumWithChromeTest < ActionDispatch::SystemTestCase
  driven_by :selenium, using: :chrome

  test "uses selenium" do
    assert_equal :chrome, Capybara.current_driver
E
eileencodes 已提交
16 17
  end
end