Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my proposed updates, part 2 #2

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions chapter-test-driven-development.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ two:
last_name: Scully
----

To be on the safe side, let’s do another `rake test` after making
To be on the safe side, let’s do another `rails test` after making
our changes (you really can’t do that often enough):

[subs=+quotes]
Expand Down Expand Up @@ -246,7 +246,7 @@ bin/rails test test/controllers/users_controller_test.rb:19
----

In the `UsersControllerTest` the User could not be created.
The controller tests are located in the directory `test/functional/`.
The controller tests are located in the directory `test/controllers/`.
Let’s now take a good look at the file
`test/controllers/users_controller_test.rb`

Expand Down Expand Up @@ -540,7 +540,7 @@ the Rails application. As an example, we will write an integration test
that tries to create a new user via the Web GUI, but omits the
`login_name` and consequently gets corresponding flash error messages.

A `rake generate scaffold` generates unit and functional tests, but not
A `rails generate scaffold` generates unit and functional tests, but not
integration tests. You can either do this manually in the directory
`test/integration/` or more comfortably with
`rails generate integration_test`. So let’s create an integration test:
Expand Down Expand Up @@ -602,7 +602,7 @@ corresponding workflow, you can rely in future on the fact that it will
run through and you don’t have to try it out manually in the browser as
well.

[[rake-stats]]
[[rails-stats]]
== rails stats

rails stats With `rails stats` you get an overview of your Rails project.
Expand Down