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 (
commit 08b6e11a07091b32bc85bec4628243b732e1a306
tree 1ea9a4ab476442cd404fcc4d58f115cf94735f43
parent 76fc6a35f8255f30f59e50cae69a40182588f1d2
tree 1ea9a4ab476442cd404fcc4d58f115cf94735f43
parent 76fc6a35f8255f30f59e50cae69a40182588f1d2
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.markdown | ||
| |
Rakefile | ||
| |
app/ | ||
| |
config/ | ||
| |
db/ | ||
| |
doc/ | ||
| |
features/ | ||
| |
lib/ | ||
| |
public/ | ||
| |
script/ | ||
| |
spec/ | ||
| |
test/ | ||
| |
vendor/ |
README.markdown
RSpec demo application
See test, spec and features directories for samples and comparison of Test::Unit, RSpec and Cucumber.
The application itself is pretty trivial and only has a Task model with a title and a finished flag. The controller allows to view, add and finish tasks. Deletion and editing of tasks is not implemented.
Relevant rake tasks
Test::Unit
Run unit tests:
rake test:units
Run functional tests:
rake test:functionals
Run integration tests:
rake test:integration
Run all of the above:
rake test
Autotest:
autotest
RSpec
Run model specs:
rake spec:models
Run controller specs:
rake spec:controllers
Run view specs:
rake spec:views
Run all of the above:
rake spec
Run code coverage analysis on specs:
rake spec:rcov
Autospec:
./script/autospec
Autospec with Cucumber features:
AUTOFEATURE=true ./script/autospec
Cucumber
Run features:
rake features
What you need
sudo gem install rspec
sudo gem install rspec-rails
sudo gem install cucumber
sudo gem install webrat
sudo gem install rcov
Author
Copyright (c) 2008 Marco Otte-Witte (http://simplabs.com), released under the MIT license








