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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f722227b
Commit
f722227b
authored
6 years ago
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move EE specific spec under ee
parent
9e80c203
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
ee/spec/models/board_spec.rb
ee/spec/models/board_spec.rb
+12
-0
spec/models/board_spec.rb
spec/models/board_spec.rb
+0
-7
No files found.
ee/spec/models/board_spec.rb
View file @
f722227b
...
...
@@ -5,6 +5,18 @@ describe Board do
it
{
is_expected
.
to
include_module
(
EE
::
Board
)
}
describe
'relationships'
do
it
{
is_expected
.
to
belong_to
(
:milestone
)
}
it
{
is_expected
.
to
have_one
(
:board_assignee
)
}
it
{
is_expected
.
to
have_one
(
:assignee
).
through
(
:board_assignee
)
}
it
{
is_expected
.
to
have_many
(
:board_labels
)
}
it
{
is_expected
.
to
have_many
(
:labels
).
through
(
:board_labels
)
}
end
describe
'validations'
do
it
{
is_expected
.
to
validate_presence_of
(
:name
)
}
end
context
'validations'
do
context
'when group is present'
do
subject
{
described_class
.
new
(
group:
create
(
:group
))
}
...
...
This diff is collapsed.
Click to expand it.
spec/models/board_spec.rb
View file @
f722227b
...
...
@@ -3,17 +3,10 @@ require 'rails_helper'
describe
Board
do
describe
'relationships'
do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:milestone
)
}
it
{
is_expected
.
to
have_one
(
:board_assignee
)
}
it
{
is_expected
.
to
have_one
(
:assignee
).
through
(
:board_assignee
)
}
it
{
is_expected
.
to
have_many
(
:board_labels
)
}
it
{
is_expected
.
to
have_many
(
:labels
).
through
(
:board_labels
)
}
it
{
is_expected
.
to
have_many
(
:lists
).
order
(
list_type: :asc
,
position: :asc
).
dependent
(
:delete_all
)
}
end
describe
'validations'
do
it
{
is_expected
.
to
validate_presence_of
(
:name
)
}
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
end
end
This diff is collapsed.
Click to expand it.
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