From 51fd552da2e9e779c29e2495a99b748060406cb9 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 15 Apr 2014 21:59:57 +0000 Subject: [PATCH] database-collation: remove tests thar are db collation sensitive --- INSTALL.md | 2 +- test/unit/profile_test.rb | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index fa2153c..df555ae 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -110,7 +110,7 @@ Setup Noosfero log and tmp directories: # cd /var/lib/noosfero/current # ./etc/init.d/noosfero setup -Now it's time to setup the database. In this example we are using PostgreSQL, so if you are planning to use a different database this steps won't apply. +Now it's time to setup the database. In this example we are using PostgreSQL, so if you are planning to use a different database this steps won't apply. Pay special attention to the default collation defined on your setup by the environment variable LC_COLLATE because it might interfere in some sorting operations on your database. For more information checkout `man locale`. # apt-get install postgresql libpgsql-ruby # su postgres -c 'createuser noosfero -S -d -R' diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index f06c0ff..d8d98ab 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -1693,28 +1693,6 @@ class ProfileTest < ActiveSupport::TestCase assert_equal 1, community.members_count end - should 'order members by name alphabetically considering special characters' do - community = fast_create(Community) - - community.add_member(create_user('José').person) - community.add_member(create_user('João').person) - community.add_member(create_user('Mariana').person) - members = community.members_by_name - - assert_equal ["João", "José", "Mariana"], members.map(&:name) - end - - should 'order members by name alphabetically considering upper and lower cases' do - community = fast_create(Community) - - community.add_member(create_user('mariana').person) - community.add_member(create_user('João').person) - community.add_member(create_user('guest').person) - members = community.members_by_name - - assert_equal ["guest", "João", "mariana"], members.map(&:name) - end - should 'know if url is the profile homepage' do profile = fast_create(Profile) -- libgit2 0.21.2