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
9b4e45c3
Commit
9b4e45c3
authored
Dec 03, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for explicit true or false in specs
parent
44374434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
spec/models/project_spec.rb
spec/models/project_spec.rb
+22
-6
No files found.
spec/models/project_spec.rb
View file @
9b4e45c3
...
...
@@ -2574,7 +2574,7 @@ describe Project do
end
it
'returns false'
do
is_expected
.
to
be
_falsey
is_expected
.
to
be
false
end
end
...
...
@@ -2584,7 +2584,7 @@ describe Project do
end
it
'returns true'
do
is_expected
.
to
be
_truthy
is_expected
.
to
be
true
end
end
...
...
@@ -2594,7 +2594,7 @@ describe Project do
end
it
'returns true'
do
is_expected
.
to
be
_truthy
is_expected
.
to
be
true
end
end
...
...
@@ -2602,7 +2602,7 @@ describe Project do
let
(
:ref
)
{
nil
}
it
'returns false'
do
is_expected
.
to
be
_falsey
is_expected
.
to
be
false
end
end
...
...
@@ -2637,6 +2637,14 @@ describe Project do
it_behaves_like
'ref is protected tag'
end
context
'when ref does not exist'
do
let
(
:ref
)
{
'something'
}
it
'returns false'
do
is_expected
.
to
be
false
end
end
end
context
'when ref is full ref'
do
...
...
@@ -2667,7 +2675,7 @@ describe Project do
context
'when ref is not protected'
do
it
'returns false'
do
is_expected
.
to
be
_falsey
is_expected
.
to
be
false
end
end
...
...
@@ -2677,10 +2685,18 @@ describe Project do
end
it
'returns true'
do
is_expected
.
to
be
_truthy
is_expected
.
to
be
true
end
end
end
context
'when ref does not exist'
do
let
(
:ref
)
{
'refs/heads/something'
}
it
'returns false'
do
is_expected
.
to
be
false
end
end
end
end
...
...
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