update cucumber and refactor some of the stories

inspired by the railscasts about cucumber. Also fix a problem with ZenTest on case sensitive platforms
This commit is contained in:
Reinier Balt 2009-05-22 23:14:40 +02:00
parent bdddac5020
commit 2073f84cd8
11 changed files with 90 additions and 128 deletions

6
spec/factories.rb Normal file
View file

@ -0,0 +1,6 @@
Factory.define :user do |u|
u.sequence(:login) { |n| "testuser#{n}" }
u.password "secret"
u.password_confirmation { |user| user.password }
u.is_admin false
end