diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 8f8a7d7..c10d80d 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -40,11 +40,11 @@ class AccountControllerTest < ActionController::TestCase } @profile_data_info = { - :name=>"Um novo usuario", + :name=>"Um Novo Usuario", } @second_profile_data_info = { - :name=>"Um outro usuario", + :name=>"Um Outro Usuario", } disable_signup_bot_check end diff --git a/test/functional/mpog_software_plugin_myprofile_controller_test.rb b/test/functional/mpog_software_plugin_myprofile_controller_test.rb index d119673..4c30e82 100644 --- a/test/functional/mpog_software_plugin_myprofile_controller_test.rb +++ b/test/functional/mpog_software_plugin_myprofile_controller_test.rb @@ -41,17 +41,19 @@ class MpogSoftwarePluginMyprofileControllerTest < ActionController::TestCase offer_token = "An" post :search_offerers, :profile => person.identifier,:q => offer_token response = JSON.parse(@response.body) - assert_equal "Angelo Roberto",response[0]["name"] - assert_equal "Ana de Souza",response[1]["name"] - assert_equal "Angela Silva",response[2]["name"] + response.sort!{|a, b| a["name"] <=> b["name"]} + assert_equal "Ana de Souza",response[0]["name"] + assert_equal "Angela Silva",response[1]["name"] + assert_equal "Angelo Roberto",response[2]["name"] end should 'make search for Ang for offerer in software creation' do offer_token = "Ang" post :search_offerers, :profile => person.identifier,:q => offer_token response = JSON.parse(@response.body) - assert_equal "Angelo Roberto",response[0]["name"] - assert_equal "Angela Silva",response[1]["name"] + response.sort!{|a, b| a["name"] <=> b["name"]} + assert_equal "Angela Silva",response[0]["name"] + assert_equal "Angelo Roberto",response[1]["name"] end should 'not find any offerer for software creation' do -- libgit2 0.21.2