We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa3f854 + ac31a90 commit b492a08Copy full SHA for b492a08
test/models/user_test.rb
@@ -2,10 +2,10 @@
2
3
class UserTest < ActiveSupport::TestCase
4
test 'User.from_omniauth of a user that doesn\'t exist, should create a new user' do
5
- auth = OpenStruct.new(
+ auth = OmniAuth::AuthHash.new(
6
provider: 'google',
7
uid: '123456789',
8
- info: OpenStruct.new(
+ info: OmniAuth::AuthHash::InfoHash.new(
9
email: 'user1@gmail.com'
10
)
11
@@ -21,10 +21,10 @@ class UserTest < ActiveSupport::TestCase
21
test 'User.from_omniauth of a user that exists, should update the user' do
22
user = create :user
23
24
25
26
27
28
email: user.email
29
30
0 commit comments