From 651bba1bfe1c7d2946b8f560bb12c45b0440a12a Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Sat, 20 Dec 2014 19:02:47 -0800 Subject: We will be using the application already created in the Getting Started guide. [ci skip] --- guides/source/testing.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'guides/source') 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 -- cgit v1.2.3