spec/support/mechanized_authorization.rb in vkontakte_api-1.4.3 vs spec/support/mechanized_authorization.rb in vkontakte_api-1.4.4

- old
+ new

@@ -1,14 +1,14 @@ require 'mechanize' module MechanizedAuthorization class << self - def client + def client(scope: [:friends, :groups]) @client ||= begin agent = Mechanize.new configure - agent.get VkontakteApi.authorization_url(scope: [:friends, :groups], type: :client) + agent.get VkontakteApi.authorization_url(scope: scope, type: :client) agent.page.form_with(action: /login.vk.com/) do |form| form.email = settings.email form.pass = settings.password end.submit