diff options
author | eileencodes <eileencodes@gmail.com> | 2017-02-20 16:08:20 -0500 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2017-02-20 16:08:20 -0500 |
commit | 42a6dbdf8480b96c4a0ac6e1dab215ae9dd77d1d (patch) | |
tree | 8a7c5f7aadf430ffa8b7d2118e23d8e297df1b7d /actionpack | |
parent | 2d61c5d846f8dd3a02080fedce7ab63b8d314db6 (diff) | |
download | rails-42a6dbdf8480b96c4a0ac6e1dab215ae9dd77d1d.tar.gz rails-42a6dbdf8480b96c4a0ac6e1dab215ae9dd77d1d.tar.bz2 rails-42a6dbdf8480b96c4a0ac6e1dab215ae9dd77d1d.zip |
Clean up documentation
There were some grammar issues and incorrect information in the system
tests documentation.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/system_test_case.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/actionpack/lib/action_dispatch/system_test_case.rb b/actionpack/lib/action_dispatch/system_test_case.rb index ca23cab6ae..276e3161bd 100644 --- a/actionpack/lib/action_dispatch/system_test_case.rb +++ b/actionpack/lib/action_dispatch/system_test_case.rb @@ -10,7 +10,7 @@ module ActionDispatch class SystemTestCase < IntegrationTest # = System Testing # - # System tests let you test real application in the browser. Because system + # System tests let you test applications in the browser. Because system # tests use a real browser experience you can test all of your JavaScript # easily from your test suite. # @@ -36,10 +36,10 @@ module ActionDispatch # end # end # - # When generating an application or scaffold a +application_system_test_case.rb+ will also - # be generated containing the base class for system testing. This is where you - # can change the driver, add Capybara settings, and other configuration for - # your system tests. + # When generating an application or scaffold a +application_system_test_case.rb+ + # file will also be generated containing the base class for system testing. + # This is where you can change the driver, add Capybara settings, and other + # configuration for your system tests. # # require "test_helper" # @@ -51,7 +51,7 @@ module ActionDispatch # Selenium driver, with the Chrome browser, and a browser size of 1400x1400. # # Changing the driver configuration options are easy. Let's say you want to use - # and the Firefox browser instead. In your +application_system_test_case.rb+ + # the Firefox browser instead of Chrome. In your +application_system_test_case.rb+ # file add the following: # # require "test_helper" @@ -61,8 +61,9 @@ module ActionDispatch # end # # +driven_by+ has a required argument for the driver name. The keyword - # arguments are +:using+ for the browser (not applicable for headless drivers), - # and +:screen_size+ to change the size of the screen taking screenshots. + # arguments are +:using+ for the browser and +:screen_size+ to change the + # size of the browser screen. These two options are not applicable for + # headless drivers and will be silently ignored if passed. # # To use a headless driver, like Poltergeist, update your Gemfile to use # Poltergeist instead of Selenium and then declare the driver name in the @@ -93,7 +94,7 @@ module ActionDispatch # System Test configuration options # - # The defaults settings are Selenium, using Chrome, with a screen size + # The default settings are Selenium, using Chrome, with a screen size # of 1400x1400. # # Examples: |