Sha256: 765cba38bc23fb634754a4475cfbca5f029fb46dc9c7ba97de1f60807a229dbd
Contents?: true
Size: 670 Bytes
Versions: 37
Compression:
Stored size: 670 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe I18n do before(:each) do @date = Date.parse("2012-06-26") end context "uk" do before(:each) do I18n.locale = :uk end it "should localize month name" do I18n.l(@date, :format => "%d.%m.%Y").should == "26.06.2012" I18n.l(@date, :format => "%d %B %Y").should == "26 червня 2012" end end context "ru" do before(:each) do I18n.locale = :ru end it "should localize month name" do I18n.l(@date, :format => "%d.%m.%Y").should == "26.06.2012" I18n.l(@date, :format => "%d %B %Y").should == "26 июня 2012" end end end
Version data entries
37 entries across 37 versions & 1 rubygems