Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Automate
Agent sessions
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
a152b4a2
Commit
a152b4a2
authored
8 months ago
by
Monica Cellio
Browse files
Options
Downloads
Patches
Plain Diff
update user controller test to remove website/twitter, add discord
parent
704feaae
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/controllers/users_controller_test.rb
+3
-4
3 additions, 4 deletions
test/controllers/users_controller_test.rb
with
3 additions
and
4 deletions
test/controllers/users_controller_test.rb
+
3
−
4
View file @
a152b4a2
...
...
@@ -113,13 +113,12 @@ class UsersControllerTest < ActionController::TestCase
assert_response
200
end
test
'should update profile text'
do
test
'should update profile text
and discord name
'
do
sign_in
users
(
:standard_user
)
patch
:update_profile
,
params:
{
user:
{
profile_markdown:
'ABCDEF GHIJKL'
,
website:
'https://example.com/user'
,
twitter:
'standard_user'
discord:
'example_user#1234'
}
}
assert_response
302
...
...
@@ -127,7 +126,7 @@ class UsersControllerTest < ActionController::TestCase
assert_not_nil
assigns
(
:user
)
assert_equal
users
(
:standard_user
).
id
,
assigns
(
:user
).
id
assert_not_nil
assigns
(
:user
).
profile
assert_equal
'
standard_user
'
,
assigns
(
:user
).
twitter
assert_equal
'
example_user#1234
'
,
assigns
(
:user
).
discord
end
test
'should get full posts list for a user'
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment