forked from External/greenlight
oauth update
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
require 'test_helper'
|
||||
|
||||
class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
@user = users(:one)
|
||||
end
|
||||
|
||||
test "should get edit" do
|
||||
get edit_user_url(@user)
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should update user" do
|
||||
patch user_url(@user), params: { user: { username: @user.username } }
|
||||
assert_redirected_to user_url(@user)
|
||||
end
|
||||
|
||||
end
|
2
test/fixtures/users.yml
vendored
2
test/fixtures/users.yml
vendored
@ -3,11 +3,13 @@
|
||||
one:
|
||||
provider: twitter
|
||||
uid: <%= SecureRandom.hex(10) %>
|
||||
encrypted_id: user1
|
||||
name: User 1
|
||||
username: user1
|
||||
|
||||
two:
|
||||
provider: google
|
||||
uid: <%= SecureRandom.hex(10) %>
|
||||
encrypted_id: user2
|
||||
name: User 2
|
||||
username: user2
|
||||
|
Reference in New Issue
Block a user