Commit 9d1d73d66090cc37cffd5d9281f9ed5c7384223b

Authored by Victor Costa
1 parent 3ec278d7

oauth_client: fix signup page

plugins/oauth_client/lib/ext/user.rb
... ... @@ -9,6 +9,7 @@ class User
9 9 after_create :store_oauth_providers
10 10  
11 11 def initialize_with_oauth_client(attributes = {}, options = {})
  12 + attributes ||= {}
12 13 @oauth_providers = attributes.delete(:oauth_providers) || []
13 14 initialize_without_oauth_client(attributes, options)
14 15 end
... ...
plugins/oauth_client/test/functional/oauth_client_plugin_account_controller_test.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +require 'test_helper'
  2 +
  3 +class AccountControllerTest < ActionController::TestCase
  4 +
  5 + should 'render signup page' do
  6 + get :signup
  7 + end
  8 +
  9 +end
... ...