Commit graph

12 commits

Author SHA1 Message Date
Simon Rozet
f446effcc5 update user scenario to work with sqlite3 2008-06-24 17:11:48 +02:00
Simon Rozet
e8d1ba2633 refactored context model spec to be a bit more 'rspec-ish' and to use skinny_spec and scenarios 2008-06-23 21:39:16 +02:00
Simon Rozet
d62cbf4592 make custom spec macro `it_should_validate_length_of' accepts a message argument 2008-06-23 21:38:41 +02:00
Simon Rozet
2672c1e2b7 crreate some basic scenarios 2008-06-23 21:38:04 +02:00
Simon Rozet
b13df20630 Install the `scenarios' plugin and require it in spec_helper
It is IMO a great alternative to fixtures.
See http://github.com/aiwilliams/scenarios/tree/master and further commits
for more information.
2008-06-23 21:34:21 +02:00
Simon Rozet
6d54923e2f Spec for `todo' model 2008-06-23 12:28:38 +02:00
Simon Rozet
44b7f56c23 Spec for user model 2008-06-23 12:28:03 +02:00
Simon Rozet
0376067cf4 Install the `skinny_spec' plugin.
It's basically a set of rspec macro allowing you to write thing such as
`it_should_find_and_assign :users'.
See <http://github.com/rsl/skinny_spec/tree/master> for more informations.
It's recommended to install the `ruby2ruby' gem to have nicer error messages, but
it is not required to work.

@@ update README_FOR_DEVELOPERS accordingly.
2008-06-23 10:03:56 +02:00
Simon Rozet
60b986a5b9 fix a failing spec for context model 2008-06-23 10:03:55 +02:00
bsag
eb53865ff9 Context model specs completed. Using fixtures for some examples currently, but might convert to mocks in future. Specs now offer same coverage as Test::Unit tests for Context model. 2008-06-23 10:02:17 +02:00
bsag
1dc03195d0 Initial work on specs for models - Context model spec started. 2008-06-23 10:02:17 +02:00
Luke Melia
2c09db45c5 Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium. 2008-06-23 10:02:17 +02:00