diff --git a/src/noosfero-spb/software_communities/test/functional/profile_controller_test.rb b/src/noosfero-spb/software_communities/test/functional/profile_controller_test.rb index 2bc18a4..42d29da 100644 --- a/src/noosfero-spb/software_communities/test/functional/profile_controller_test.rb +++ b/src/noosfero-spb/software_communities/test/functional/profile_controller_test.rb @@ -10,12 +10,12 @@ class ProfileControllerTest < ActionController::TestCase def setup Environment.default.enable('products_for_enterprises') - @profile = create_user('testuser').person + @profile = create_person('testuser') end attr_reader :profile should 'not count a visit twice for the same user' do - profile = create_user('someone').person + profile = create_person('someone') login_as(@profile.identifier) software = create_software_info("a software").software @@ -29,7 +29,7 @@ class ProfileControllerTest < ActionController::TestCase end should 'not count a visit twice for unlogged users' do - profile = create_user('someone').person + profile = create_person('someone') software = create_software_info("a software").software get :index, :profile => software.identifier diff --git a/src/noosfero-spb/software_communities/test/helpers/plugin_test_helper.rb b/src/noosfero-spb/software_communities/test/helpers/plugin_test_helper.rb index 1b33bdf..941776c 100644 --- a/src/noosfero-spb/software_communities/test/helpers/plugin_test_helper.rb +++ b/src/noosfero-spb/software_communities/test/helpers/plugin_test_helper.rb @@ -22,7 +22,7 @@ module PluginTestHelper software_info end - def create_person name, email, password, password_confirmation, state, city + def create_person name, email="test@test.com", password='test', password_confirmation='test', state='df', city='gama' user = create_user( name.to_slug, email, @@ -45,7 +45,7 @@ module PluginTestHelper person end - def create_user login, email, password, password_confirmation + def create_user login, email="test@test.com", password='test', password_confirmation='test' user = User.new user.login = login -- libgit2 0.21.2