Project initialize
This commit is contained in:
0
test/fixtures/.keep
vendored
Normal file
0
test/fixtures/.keep
vendored
Normal file
7
test/fixtures/departments.yml
vendored
Normal file
7
test/fixtures/departments.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
one:
|
||||
name: IT
|
||||
description: Information Technology
|
||||
|
||||
two:
|
||||
name: HR
|
||||
description: Human Resources
|
||||
0
test/fixtures/files/.keep
vendored
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
13
test/fixtures/task_activities.yml
vendored
Normal file
13
test/fixtures/task_activities.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
task: one
|
||||
user: one
|
||||
action: MyString
|
||||
details: MyText
|
||||
|
||||
two:
|
||||
task: two
|
||||
user: two
|
||||
action: MyString
|
||||
details: MyText
|
||||
24
test/fixtures/tasks.yml
vendored
Normal file
24
test/fixtures/tasks.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
one:
|
||||
title: Setup Server
|
||||
description: Initial server setup for the IT department
|
||||
priority: urgent
|
||||
status: open
|
||||
creator: admin
|
||||
department: one
|
||||
|
||||
two:
|
||||
title: Recruitment Plan
|
||||
description: Plan for new hires
|
||||
priority: planning
|
||||
status: open
|
||||
creator: manager
|
||||
department: two
|
||||
assignee: employee
|
||||
|
||||
completed_task:
|
||||
title: Policy Update
|
||||
description: Update the company policy
|
||||
priority: review
|
||||
status: completed
|
||||
creator: manager
|
||||
department: two
|
||||
22
test/fixtures/users.yml
vendored
Normal file
22
test/fixtures/users.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
admin:
|
||||
name: Admin User
|
||||
email: admin@example.com
|
||||
role: admin
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
|
||||
confirmed_at: <%= Time.current %>
|
||||
|
||||
manager:
|
||||
name: Manager User
|
||||
email: manager@example.com
|
||||
role: manager
|
||||
department: one
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
|
||||
confirmed_at: <%= Time.current %>
|
||||
|
||||
employee:
|
||||
name: Employee User
|
||||
email: employee@example.com
|
||||
role: employee
|
||||
department: one
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
|
||||
confirmed_at: <%= Time.current %>
|
||||
Reference in New Issue
Block a user