diff --git a/plugins/oauth_client/lib/ext/user.rb b/plugins/oauth_client/lib/ext/user.rb index 9f44093..b5d6300 100644 --- a/plugins/oauth_client/lib/ext/user.rb +++ b/plugins/oauth_client/lib/ext/user.rb @@ -9,6 +9,7 @@ class User after_create :store_oauth_providers def initialize_with_oauth_client(attributes = {}, options = {}) + attributes ||= {} @oauth_providers = attributes.delete(:oauth_providers) || [] initialize_without_oauth_client(attributes, options) end diff --git a/plugins/oauth_client/test/functional/oauth_client_plugin_account_controller_test.rb b/plugins/oauth_client/test/functional/oauth_client_plugin_account_controller_test.rb new file mode 100644 index 0000000..e8d231f --- /dev/null +++ b/plugins/oauth_client/test/functional/oauth_client_plugin_account_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class AccountControllerTest < ActionController::TestCase + + should 'render signup page' do + get :signup + end + +end -- libgit2 0.21.2