Skip to content

Commit b492a08

Browse files
Merge pull request #651 from cedarcode/sr--remove-openstruct
Borrar usos de `OpenStruct`
2 parents fa3f854 + ac31a90 commit b492a08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/models/user_test.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
class UserTest < ActiveSupport::TestCase
44
test 'User.from_omniauth of a user that doesn\'t exist, should create a new user' do
5-
auth = OpenStruct.new(
5+
auth = OmniAuth::AuthHash.new(
66
provider: 'google',
77
uid: '123456789',
8-
info: OpenStruct.new(
8+
info: OmniAuth::AuthHash::InfoHash.new(
99
email: 'user1@gmail.com'
1010
)
1111
)
@@ -21,10 +21,10 @@ class UserTest < ActiveSupport::TestCase
2121
test 'User.from_omniauth of a user that exists, should update the user' do
2222
user = create :user
2323

24-
auth = OpenStruct.new(
24+
auth = OmniAuth::AuthHash.new(
2525
provider: 'google',
2626
uid: '123456789',
27-
info: OpenStruct.new(
27+
info: OmniAuth::AuthHash::InfoHash.new(
2828
email: user.email
2929
)
3030
)

0 commit comments

Comments
 (0)