add tests for #886.

This commit is contained in:
Reinier Balt 2010-07-29 18:06:30 +02:00
parent 3d75cd2457
commit c9be43b2c8
5 changed files with 55 additions and 2 deletions

View file

@ -3,4 +3,10 @@ Factory.define :user do |u|
u.password "secret"
u.password_confirmation { |user| user.password }
u.is_admin false
end
Factory.define :context do |c|
c.sequence(:name) { |n| "testcontext#{n}" }
c.hide false
c.created_at Time.now.utc
end