[Git][noosfero/noosfero][master] oauth_client: fix signup page

Victor Costa gitlab at mg.gitlab.com
Fri Jan 29 14:31:53 BRST 2016


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
9d1d73d6 by Victor Costa at 2016-01-29T13:30:28-03:00
oauth_client: fix signup page

- - - - -


2 changed files:

- plugins/oauth_client/lib/ext/user.rb
- + plugins/oauth_client/test/functional/oauth_client_plugin_account_controller_test.rb


Changes:

=====================================
plugins/oauth_client/lib/ext/user.rb
=====================================
--- 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


=====================================
plugins/oauth_client/test/functional/oauth_client_plugin_account_controller_test.rb
=====================================
--- /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



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/9d1d73d66090cc37cffd5d9281f9ed5c7384223b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160129/e87f8e7a/attachment.html>


More information about the Noosfero-dev mailing list