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
b83c2a2d
Commit
b83c2a2d
authored
Sep 28, 2020
by
sfang97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user spec
parent
ee209104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/models/user_spec.rb
spec/models/user_spec.rb
+5
-5
No files found.
spec/models/user_spec.rb
View file @
b83c2a2d
...
...
@@ -4335,7 +4335,7 @@ RSpec.describe User do
subject
{
user
.
required_terms_not_accepted?
}
context
"when terms are not enforced"
do
it
{
is_expected
.
to
be_falsy
}
it
{
is_expected
.
to
be_fals
e
y
}
end
context
"when terms are enforced"
do
...
...
@@ -4344,17 +4344,17 @@ RSpec.describe User do
end
it
"is not accepted by the user"
do
it
{
is_expected
.
to
be_truthy
}
expect
(
subject
).
to
be_truthy
end
it
"is accepted by the user"
do
it
"is accepted by the user"
do
accept_terms
(
user
)
it
{
is_expected
.
to
be_falsy
}
expect
(
subject
).
to
be_falsey
end
it
"auto accepts the term for project bots"
do
expect
(
project_bot
.
required_terms_not_accepted?
).
to
be_falsy
expect
(
project_bot
.
required_terms_not_accepted?
).
to
be_fals
e
y
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