1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Fumiaki MATSUSHIMA 24e0fa7c4a Make driven_by overridable
Sometimes we want to use rack_test partially instead of selenium for test speed:

```ruby
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
  driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: {url: "http://chrome:4444/wd/hub"}
end

class WithJavaScriptTest < ApplicationSystemTestCase
end

class WithoutJavaScriptTest < ApplicationSystemTestCase
  driven_by :rack_test
end
```

In the abobe case, `WithoutJavaScriptTest` uses selenium because
`SystemTestCase` calls superclass' driver on `#initialize` (`self.class.superclass.driver.use`).

Using `class_attribute` can handle inherited `driven_by`.
2017-03-29 09:04:30 +09:00
..
abstract_controller Unfreeze interpolated string because it's useless. 2017-02-19 23:32:36 +08:00
action_controller Small grammar fix 2017-03-22 15:44:19 -04:00
action_dispatch Make driven_by overridable 2017-03-29 09:04:30 +09:00
action_pack Start Rails 5.2 development 2017-03-22 10:11:39 +10:30
abstract_controller.rb applies new string literal convention in actionpack/lib 2016-08-06 18:51:43 +02:00
action_controller.rb Include the content of the flash in the auto-generated etag (#26250) 2016-08-22 13:34:35 -07:00
action_dispatch.rb Move and rename system tests 2017-02-20 15:07:35 -05:00
action_pack.rb Bump license years for 2017 2016-12-31 08:34:08 -05:00