mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 10:16:11 +01:00
add tests for #886.
This commit is contained in:
parent
3d75cd2457
commit
c9be43b2c8
5 changed files with 55 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue