diff options
author | eileencodes <eileencodes@gmail.com> | 2017-02-19 11:50:42 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-02-20 15:07:35 -0500 |
commit | 1a0ca84a064b07ecab798793a3d7ebe89bb6367c (patch) | |
tree | b4eccc275e62040d0a3ffdcc19103e54ab0289b6 /actionpack/lib/action_dispatch/system_testing/server.rb | |
parent | 0a683085b1db435b7371350b2799a0f248cd717a (diff) | |
download | rails-1a0ca84a064b07ecab798793a3d7ebe89bb6367c.tar.gz rails-1a0ca84a064b07ecab798793a3d7ebe89bb6367c.tar.bz2 rails-1a0ca84a064b07ecab798793a3d7ebe89bb6367c.zip |
Move and rename system tests
* Move system tests back into Action Pack
* Rename `ActionSystemTest` to `ActionDispatch::SystemTestCase`
* Remove private base module and only make file for public
`SystemTestCase` class, name private module `SystemTesting`
* Rename `ActionSystemTestCase` to `ApplicationSystemTestCase`
* Update corresponding documentation and guides
* Delete old `ActionSystemTest` files
Diffstat (limited to 'actionpack/lib/action_dispatch/system_testing/server.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/system_testing/server.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/server.rb b/actionpack/lib/action_dispatch/system_testing/server.rb new file mode 100644 index 0000000000..62ba07736b --- /dev/null +++ b/actionpack/lib/action_dispatch/system_testing/server.rb @@ -0,0 +1,23 @@ +require "rack/handler/puma" + +module ActionDispatch + module SystemTesting + class Server # :nodoc: + def run + register + setup + end + + private + def register + Capybara.register_server :rails_puma do |app, port, host| + Rack::Handler::Puma.run(app, Port: port, Threads: "0:1") + end + end + + def setup + Capybara.server = :rails_puma + end + end + end +end |