From 5d3abc06c39a366cc4da3cda1725d92809e2f168 Mon Sep 17 00:00:00 2001 From: kenta-s Date: Thu, 2 Mar 2017 13:03:03 +0900 Subject: Fix some grammar in docs [ci skip] --- guides/source/testing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source/testing.md') diff --git a/guides/source/testing.md b/guides/source/testing.md index c7897a42a1..113314a5b8 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -636,11 +636,11 @@ change the default settings. Rails makes changing the default settings for system test very simple. All the setup is abstracted away so you can focus on writing your tests. -When you generate a new application or scaffold, a `application_system_test_case.rb` file +When you generate a new application or scaffold, an `application_system_test_case.rb` file is created in the test directory. This is where all the configuration for your system tests should live. -If you want to change the default settings you can simple change what the system +If you want to change the default settings you can simply change what the system tests are "driven by". Say you want to change the driver from Selenium to Poltergeist. First add the Poltergeist gem to your Gemfile. Then in your `application_system_test_case.rb` file do the following: @@ -685,7 +685,7 @@ This can be helpful for viewing the browser at the point a test failed, or to view screenshots later for debugging. Two methods are provided: `take_screenshot` and `take_failed_screenshot`. -`take_failed_screenshot` is automatically included in `after_teardown` inside +`take_failed_screenshot` is automatically included in `after_teardown` inside Rails. The `take_screenshot` helper method can be included anywhere in your tests to -- cgit v1.2.3