From 8f00d31ec6b9cb9355c501d384204712e7b59f3d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 23 Jan 2013 18:09:03 +0000 Subject: [PATCH] Accommodates fixtures for databases with case sensitive sort. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11260 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/fixtures/users.yml | 2 +- test/functional/timelog_controller_test.rb | 4 ++-- test/functional/wiki_controller_test.rb | 2 +- test/unit/helpers/issues_helper_test.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index d29c155cd..15bf89bc5 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -29,7 +29,7 @@ users_001: admin: true mail: admin@somenet.foo lastname: Admin - firstname: redMine + firstname: Redmine id: 1 auth_source_id: mail_notification: all diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index ae0561bfa..133c809e4 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -552,7 +552,7 @@ class TimelogControllerTest < ActionController::TestCase assert_response :success assert_equal 'text/csv; header=present', @response.content_type assert @response.body.include?("Date,User,Activity,Project,Issue,Tracker,Subject,Hours,Comment,Overtime\n") - assert @response.body.include?("\n04/21/2007,redMine Admin,Design,eCookbook,3,Bug,Error 281 when updating a recipe,1.0,\"\",\"\"\n") + assert @response.body.include?("\n04/21/2007,Redmine Admin,Design,eCookbook,3,Bug,Error 281 when updating a recipe,1.0,\"\",\"\"\n") end def test_index_csv_export @@ -561,7 +561,7 @@ class TimelogControllerTest < ActionController::TestCase assert_response :success assert_equal 'text/csv; header=present', @response.content_type assert @response.body.include?("Date,User,Activity,Project,Issue,Tracker,Subject,Hours,Comment,Overtime\n") - assert @response.body.include?("\n04/21/2007,redMine Admin,Design,eCookbook,3,Bug,Error 281 when updating a recipe,1.0,\"\",\"\"\n") + assert @response.body.include?("\n04/21/2007,Redmine Admin,Design,eCookbook,3,Bug,Error 281 when updating a recipe,1.0,\"\",\"\"\n") end def test_index_csv_export_with_multi_custom_field diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 2af8830d9..737a29947 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -585,7 +585,7 @@ class WikiControllerTest < ActionController::TestCase # Line 5 assert_tag :tag => 'tr', :child => { :tag => 'th', :attributes => {:class => 'line-num'}, :content => '5', :sibling => { - :tag => 'td', :attributes => {:class => 'author'}, :content => /redMine Admin/, :sibling => { + :tag => 'td', :attributes => {:class => 'author'}, :content => /Redmine Admin/, :sibling => { :tag => 'td', :content => /Some updated \[\[documentation\]\] here/ } } diff --git a/test/unit/helpers/issues_helper_test.rb b/test/unit/helpers/issues_helper_test.rb index 1b37dbff5..73548fbc5 100644 --- a/test/unit/helpers/issues_helper_test.rb +++ b/test/unit/helpers/issues_helper_test.rb @@ -181,7 +181,7 @@ class IssuesHelperTest < ActionView::TestCase should "show old and new values with a assigned to attribute" do detail = JournalDetail.new(:property => 'attr', :prop_key => 'assigned_to_id', :old_value => 1, :value => 2) - assert_match 'redMine Admin', show_detail(detail, true) + assert_match 'Redmine Admin', show_detail(detail, true) assert_match 'John Smith', show_detail(detail, true) end