This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install thoughtbot-shoulda
commit 1a8227dc1a50f51bb3ffbbb09b1d2e3bbf1fe5a8
tree c64ec85ca0088d4448dcefebfd10da34055d9c60
parent 833157cb8df6b559fe2c25b05d4a28e9dc883e31 parent ee9bdbc00ef2a0c311c1571d947c21f79cdec92b
tree c64ec85ca0088d4448dcefebfd10da34055d9c60
parent 833157cb8df6b559fe2c25b05d4a28e9dc883e31 parent ee9bdbc00ef2a0c311c1571d947c21f79cdec92b
shoulda / test
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README | Fri Jul 11 18:03:50 -0700 2008 | [rmm5t] |
| |
fixtures/ | Sun Aug 31 09:14:16 -0700 2008 | [rmm5t] |
| |
functional/ | Fri Nov 07 12:30:07 -0800 2008 | [bjhess] |
| |
other/ | Thu Sep 04 13:07:43 -0700 2008 | [Joe Ferris] |
| |
rails_root/ | Sat Oct 18 15:03:08 -0700 2008 | [rmm5t] |
| |
test_helper.rb | Sun Sep 14 18:19:44 -0700 2008 | [rmm5t] |
| |
unit/ | Wed Sep 17 13:16:41 -0700 2008 | [rmm5t] |
README
The Shoulda test suite (in particular - the tests that test shoulda) Quick overview: The test directory contains the following files and subdirectories: * rails_root - contains the stripped down rails application that the tests run against. The rails root contains: ** the models, controllers, and views defined under app/ ** the sqlite3.rb environment file ** a migration file for each model * fixtures - contain the sample DB data for each model * functional - controller tests for each of the controllers under rails_root/app * unit - model tests for each of the models under rails_root/app * other - tests for the shoulda contexts, should statements, and assertions * test_helper.rb - responsible for initializing the test environment ** sets the rails_env to sqlite3 ** sets the rails_root ** creates the rails_root/vendor/plugins/shoulda symlink ** runs all the migrations against the in-memory sqlite3 db ** adds some magic to load the right fixture files In order to add a new model (or controller) to the test suite: * add that model to rails_root/app/models * add a migration for that model * add a fixture file * add a test for that file under test/units Dependencies: * Rails gem installed in the host system * A working sqlite3 installation. If you have problems running these tests, please notify the mailing list: shoulda@googlegroups.com - Tammer Saleh <tsaleh@thoughtbot.com>




