Fixed: ruby 1.9.3 Time Zone setting Internal error (#10442).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9244 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7c5635f6c6
commit
fec3e6c84b
1
Gemfile
1
Gemfile
|
@ -4,6 +4,7 @@ gem "rails", "2.3.14"
|
||||||
gem "i18n", "~> 0.4.2"
|
gem "i18n", "~> 0.4.2"
|
||||||
gem "coderay", "~> 1.0.0"
|
gem "coderay", "~> 1.0.0"
|
||||||
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
||||||
|
gem "tzinfo", "~> 0.3.31"
|
||||||
|
|
||||||
# Optional gem for LDAP authentication
|
# Optional gem for LDAP authentication
|
||||||
group :ldap do
|
group :ldap do
|
||||||
|
|
|
@ -60,6 +60,15 @@ class Redmine::I18nTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_time_for_each_zone
|
||||||
|
ActiveSupport::TimeZone.all.each do |zone|
|
||||||
|
User.current.stubs(:time_zone).returns(zone.name)
|
||||||
|
assert_nothing_raised "#{zone} failure" do
|
||||||
|
format_time(Time.now)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_time_format
|
def test_time_format
|
||||||
set_language_if_valid 'en'
|
set_language_if_valid 'en'
|
||||||
now = Time.parse('2011-02-20 15:45:22')
|
now = Time.parse('2011-02-20 15:45:22')
|
||||||
|
|
Loading…
Reference in New Issue