Skip to content

Commit

Permalink
Proper 1.9.3 strftime specs
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav committed May 17, 2012
1 parent 300c6b3 commit e2dde13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/i18n/locale/datetime_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@
it "should use month names" do
l(@date, :format => "%d %B").should == "01 декабря"
l(@date, :format => "%-d %B").should == "1 декабря"
l(@date, :format => "%1d %B").should == "1 декабря"
l(@date, :format => "%2d %B").should == "01 декабря"

if RUBY_VERSION > "1.9.2"
l(@date, :format => "%1d %B").should == "1 декабря"
l(@date, :format => "%2d %B").should == "01 декабря"
end

l(@date, :format => "%e %B %Y").should == " 1 декабря 1985"
l(@date, :format => "<b>%d</b> %B").should == "<b>01</b> декабря"
l(@date, :format => "<strong>%e</strong> %B %Y").should == "<strong> 1</strong> декабря 1985"
Expand Down

0 comments on commit e2dde13

Please sign in to comment.