Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
bc54300c
Commit
bc54300c
authored
Feb 18, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix task factory
parent
139c513d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
app/models/task.rb
app/models/task.rb
+1
-1
spec/factories/tasks.rb
spec/factories/tasks.rb
+4
-1
spec/models/task_spec.rb
spec/models/task_spec.rb
+1
-1
No files found.
app/models/task.rb
View file @
bc54300c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
# target_type :string not null
# target_type :string not null
# author_id :integer
# author_id :integer
# note_id :integer
# note_id :integer
# action :integer
# action :integer
not null
# state :string not null
# state :string not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
...
spec/factories/tasks.rb
View file @
bc54300c
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
# target_id :integer not null
# target_id :integer not null
# target_type :string not null
# target_type :string not null
# author_id :integer
# author_id :integer
# action :integer
# note_id :integer
# action :integer not null
# state :string not null
# state :string not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
@@ -19,6 +20,8 @@ FactoryGirl.define do
...
@@ -19,6 +20,8 @@ FactoryGirl.define do
project
project
author
author
user
user
target
factory: :issue
action
{
Task
::
ASSIGNED
}
trait
:assigned
do
trait
:assigned
do
action
{
Task
::
ASSIGNED
}
action
{
Task
::
ASSIGNED
}
...
...
spec/models/task_spec.rb
View file @
bc54300c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
# target_type :string not null
# target_type :string not null
# author_id :integer
# author_id :integer
# note_id :integer
# note_id :integer
# action :integer
# action :integer
not null
# state :string not null
# state :string not null
# created_at :datetime
# created_at :datetime
# updated_at :datetime
# updated_at :datetime
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment