Skip to content

Commit

Permalink
Remove #custom_create_new_external_user, which is never used.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebihara99999 committed Jan 28, 2017
1 parent 794988c commit ff5c128
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/sorcery/test_helpers/internal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ def create_new_external_user(provider, attributes_hash = nil)
@user
end

def custom_create_new_external_user(provider, authentication_class, attributes_hash = nil)
authentication_association = authentication_class.name.underscore.pluralize

user_attributes_hash = attributes_hash || { username: 'gizmo' }
@user = User.new(user_attributes_hash)
@user.sorcery_adapter.save(raise_on_failure: true)
@user.send(authentication_association).create!(provider: provider, uid: 123)
@user
end

def sorcery_model_property_set(property, *values)
User.class_eval do
sorcery_config.send(:"#{property}=", *values)
Expand Down

0 comments on commit ff5c128

Please sign in to comment.