]> source.dussan.org Git - redmine.git/commitdiff
Upgrade to Rails 3.2.15.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Nov 2013 07:51:00 +0000 (07:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 9 Nov 2013 07:51:00 +0000 (07:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12246 e93f8b46-1217-0410-a6f0-8f06a7374b81

Gemfile
test/unit/lib/redmine/i18n_test.rb
test/unit/project_members_inheritance_test.rb

diff --git a/Gemfile b/Gemfile
index 59a82655f1d402b64706706728a481ce5884490c..0b7f8f7497b5c73d9f1baa776b5482eefc0e294b 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
 source 'https://rubygems.org'
 
-gem "rails", "3.2.13"
+gem "rails", "3.2.15"
 gem "jquery-rails", "~> 2.0.2"
 gem "coderay", "~> 1.1.0"
 gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
index a2b802af800a33dde6e38462925c20b2dd1b4aa3..7b9294604de0615a9d098864de569656457a3024 100644 (file)
@@ -105,12 +105,12 @@ class Redmine::I18nTest < ActiveSupport::TestCase
     now = Time.parse('2011-02-20 15:45:22')
     with_settings :time_format => '' do
       with_settings :date_format => '' do
-        assert_equal '02/20/2011 03:45 pm', format_time(now)
-        assert_equal '03:45 pm', format_time(now, false)
+        assert_equal '02/20/2011 03:45 PM', format_time(now)
+        assert_equal '03:45 PM', format_time(now, false)
       end
       with_settings :date_format => '%Y-%m-%d' do
-        assert_equal '2011-02-20 03:45 pm', format_time(now)
-        assert_equal '03:45 pm', format_time(now, false)
+        assert_equal '2011-02-20 03:45 PM', format_time(now)
+        assert_equal '03:45 PM', format_time(now, false)
       end
     end
   end
index 8cd6486b33cf19d06c9e181c32210d0ce8abc5a5..92cc19f469346e843de1e3deb9c20fd9b6d80683 100644 (file)
@@ -105,6 +105,7 @@ class ProjectMembersInheritanceTest < ActiveSupport::TestCase
   def test_moving_a_subproject_to_another_parent_should_change_inherited_members
     other_parent = Project.generate!
     other_member = Member.create!(:principal => User.find(4), :project => other_parent, :role_ids => [3])
+    other_member.reload
 
     Project.generate_with_parent!(@parent, :inherit_members => true)
     project = Project.order('id desc').first
@@ -157,6 +158,7 @@ class ProjectMembersInheritanceTest < ActiveSupport::TestCase
 
     assert_difference 'Member.count', 2 do
       member = Member.create!(:principal => User.find(4), :project => @parent, :role_ids => [1, 3])
+      member.reload
 
       inherited_member = project.memberships.order('id desc').first
       assert_equal member.principal, inherited_member.principal
@@ -195,6 +197,7 @@ class ProjectMembersInheritanceTest < ActiveSupport::TestCase
       assert_difference 'MemberRole.count', 8 do
         member = Member.create!(:principal => group, :project => @parent, :role_ids => [1, 3])
         project.reload
+        member.reload
   
         inherited_group_member = project.memberships.detect {|m| m.principal == group}
         assert_not_nil inherited_group_member