Skip to content

Commit

Permalink
Corrected model test directory to be test/models instead of test/unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
derikson committed Apr 6, 2013
1 parent b75c0bb commit 018cc38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/testing.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ When you use `rails generate scaffold`, for a resource among other things it cre
$ rails generate scaffold post title:string body:text $ rails generate scaffold post title:string body:text
... ...
create app/models/post.rb create app/models/post.rb
create test/unit/post_test.rb create test/models/post_test.rb
create test/fixtures/posts.yml create test/fixtures/posts.yml
... ...
``` ```


The default test stub in `test/unit/post_test.rb` looks like this: The default test stub in `test/models/post_test.rb` looks like this:


```ruby ```ruby
require 'test_helper' require 'test_helper'
Expand Down

0 comments on commit 018cc38

Please sign in to comment.