Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
M
media_choice
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
81
Issues
81
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
minuto
media_choice
Commits
12338097
Commit
12338097
authored
Jun 27, 2016
by
Diego de Araújo Martinez Camarinha
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add validation for terms of service acceptance on Profile
Signed-off-by:
Heitor Reis
<
marcheing@gmail.com
>
parent
89db3df2
Pipeline
#3598424
failed with stage
in 8 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
spec/models/profile_spec.rb
spec/models/profile_spec.rb
+1
-0
No files found.
spec/models/profile_spec.rb
View file @
12338097
...
...
@@ -12,6 +12,7 @@ RSpec.describe Profile, type: :model do
%i(first_name last_name country state city zip_code gender occupation)
.
each
do
|
field
|
it
{
is_expected
.
to
validate_presence_of
field
}
end
it
{
is_expected
.
to
validate_acceptance_of
:terms_of_service
}
end
describe
'fields that are conditionally required'
do
...
...
Rafael Reggiani Manzo
@rafamanzo
·
Jun 27, 2016
Owner
Looks like you're testing it, not adding :)
Looks like you're testing it, not adding :)
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