Skip to content
Browse files

Remove throwing `warning: invalid start is ignored`

The last argument should be a Julian day number which denotes the day of calendar reform. Date::ITALY (2299161=1582-10-15), Date::ENGLAND (2361222=1752-09-14), Date::GREGORIAN (the proleptic Gregorian calendar) and Date::JULIAN (the proleptic Julian calendar) can be specified as a day of calendar reform
  • Loading branch information...
1 parent ceb40d4 commit afdb9731542857024d6d2a4ab373746ee0d776da @kknapik kknapik committed Dec 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/i18n/tests/localization/procs.rb
View
4 lib/i18n/tests/localization/procs.rb
@@ -27,13 +27,13 @@ module Procs
test "localize Date: given a format that resolves to a Proc it calls the Proc with the object" do
setup_time_proc_translations
- date = ::Date.new(2008, 3, 1, 6)
+ date = ::Date.new(2008, 3, 1)
assert_equal '[Sat, 01 Mar 2008, {}]', I18n.l(date, :format => :proc, :locale => :ru)
end
test "localize Date: given a format that resolves to a Proc it calls the Proc with the object and extra options" do
setup_time_proc_translations
- date = ::Date.new(2008, 3, 1, 6)
+ date = ::Date.new(2008, 3, 1)
assert_equal '[Sat, 01 Mar 2008, {:foo=>"foo"}]', I18n.l(date, :format => :proc, :foo => 'foo', :locale => :ru)
end

0 comments on commit afdb973

Please sign in to comment.
Something went wrong with that request. Please try again.