Skip to content

Commit

Permalink
Update users_controller_test.rb (#9359)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdtown3 committed Mar 28, 2021
1 parent c9daa81 commit e30adfa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/functional/users_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ def setup

test 'update profile with correct password when ui_update is true' do
user = users(:bob)
bio = users(:bob).bio
UserSession.create(user)
post :update, params: {
user: {
Expand All @@ -241,7 +240,6 @@ def setup

test 'rejecting update profile with wrong password when ui_update is nil' do
user = users(:bob)
bio = users(:bob).bio
UserSession.create(user)
post :update, params: {
user: {
Expand All @@ -256,7 +254,6 @@ def setup

test 'allowing update profile with empty password when ui_update is true' do
user = users(:bob)
bio = users(:bob).bio
UserSession.create(user)
post :update, params: {
user: {
Expand All @@ -276,7 +273,6 @@ def setup
end

test 'should redirect update when not logged in' do
user = users(:bob)
post :update, params: { user: { bio: 'Hello, there!' } }
assert_not flash.empty?
assert_redirected_to '/login?return_to=/users/update'
Expand Down

0 comments on commit e30adfa

Please sign in to comment.