diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-12-01 23:00:47 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-12-01 23:00:47 +0530 |
commit | 0181c2da977fc3de4e4c4eac602b26ff180cda2c (patch) | |
tree | 4ff327e807bc7729c5b99bf261bdbc5178faf227 /guides/source/testing.md | |
parent | fb42520252477d83560f2e2a2550c7f377e07bc1 (diff) | |
parent | 9685019c4a15eb0222984748e7413dc5920195f4 (diff) | |
download | rails-0181c2da977fc3de4e4c4eac602b26ff180cda2c.tar.gz rails-0181c2da977fc3de4e4c4eac602b26ff180cda2c.tar.bz2 rails-0181c2da977fc3de4e4c4eac602b26ff180cda2c.zip |
Merge branch 'master' of github.com:lifo/docrails
Conflicts:
guides/source/active_record_validations.md
Diffstat (limited to 'guides/source/testing.md')
-rw-r--r-- | guides/source/testing.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index f898456d39..9ce94f4c53 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -2,11 +2,13 @@ A Guide to Testing Rails Applications ===================================== This guide covers built-in mechanisms offered by Rails to test your -application. By referring to this guide, you will be able to: +application. -* Understand Rails testing terminology -* Write unit, functional, and integration tests for your application -* Identify other popular testing approaches and plugins +After reading this guide, you will know: + +* Understand Rails testing terminology. +* Write unit, functional, and integration tests for your application. +* Identify other popular testing approaches and plugins. -------------------------------------------------------------------------------- @@ -97,9 +99,9 @@ Rails by default automatically loads all fixtures from the `test/fixtures` folde * Load the fixture data into the table * Dump the fixture data into a variable in case you want to access it directly -#### Fixtures are ActiveRecord objects +#### Fixtures are Active Record objects -Fixtures are instances of ActiveRecord. As mentioned in point #3 above, you can access the object directly because it is automatically setup as a local variable of the test case. For example: +Fixtures are instances of Active Record. As mentioned in point #3 above, you can access the object directly because it is automatically setup as a local variable of the test case. For example: ```ruby # this will return the User object for the fixture named david |