diff options
author | Zachary Scott <e@zzak.io> | 2014-12-20 19:02:47 -0800 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-12-20 19:02:47 -0800 |
commit | 651bba1bfe1c7d2946b8f560bb12c45b0440a12a (patch) | |
tree | 8ccc758f1d64a74fe80dcad0d44b436d80184bbe /guides | |
parent | a504cbee78370f944c0dbdb3beebfd118037eb5d (diff) | |
download | rails-651bba1bfe1c7d2946b8f560bb12c45b0440a12a.tar.gz rails-651bba1bfe1c7d2946b8f560bb12c45b0440a12a.tar.bz2 rails-651bba1bfe1c7d2946b8f560bb12c45b0440a12a.zip |
We will be using the application already created in the Getting Started guide.
[ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/testing.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index b279463ea8..8a8befc0ae 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -144,11 +144,9 @@ Unit Testing your Models In Rails, unit tests are what you write to test your models. -For this guide we will be using Rails _scaffolding_. It will create the model, a migration, controller and views for the new resource in a single operation. It will also create a full test suite following Rails best practices. We will be using examples from this generated code and will be supplementing it with additional examples where necessary. +For this guide we will be using the application we built in the [Getting Started with Rails](getting_started.html) guide. -NOTE: For more information on Rails _scaffolding_, refer to [Getting Started with Rails](getting_started.html) - -When you use `rails generate scaffold`, for a resource among other things it creates a test stub in the `test/models` directory: +If you remember when you used the `rails generate scaffold` command from earlier. We created our first resource among other things it created a test stub in the `test/models` directory: ```bash $ bin/rails generate scaffold article title:string body:text |