mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge branch 'master' of github.com:rails/docrails
This commit is contained in:
commit
09436fb6d6
2 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ Configuring Rails Components
|
|||
|
||||
In general, the work of configuring Rails means configuring the components of Rails, as well as configuring Rails itself. The configuration file `config/application.rb` and environment-specific configuration files (such as `config/environments/production.rb`) allow you to specify the various settings that you want to pass down to all of the components.
|
||||
|
||||
For example, the `config/application.rb` file includes this setting:
|
||||
For example, you could add this setting to `config/application.rb` file:
|
||||
|
||||
```ruby
|
||||
config.time_zone = 'Central Time (US & Canada)'
|
||||
|
|
|
@ -644,7 +644,7 @@ system tests should live.
|
|||
|
||||
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
|
||||
Poltergeist. First add the `poltergeist` gem to your Gemfile. Then in your
|
||||
`application_system_test_case.rb` file do the following:
|
||||
|
||||
```ruby
|
||||
|
@ -722,7 +722,7 @@ class ArticlesTest < ApplicationSystemTestCase
|
|||
end
|
||||
```
|
||||
|
||||
The test should see that there is an h1 on the articles index and pass.
|
||||
The test should see that there is an `h1` on the articles index page and pass.
|
||||
|
||||
Run the system tests.
|
||||
|
||||
|
@ -763,7 +763,7 @@ text. Once the fields are filled in, "Create Article" is clicked on which will
|
|||
send a POST request to create the new article in the database.
|
||||
|
||||
We will be redirected back to the the articles index page and there we assert
|
||||
that the text from the article title is on the articles index page.
|
||||
that the text from the new article's title is on the articles index page.
|
||||
|
||||
#### Taking it further
|
||||
|
||||
|
|
Loading…
Reference in a new issue