Sha256: fcfb7af73e15298ec1c405ab04d51057b512451b60593124be4a2d017920ecb2
Contents?: true
Size: 583 Bytes
Versions: 6
Compression:
Stored size: 583 Bytes
Contents
require File.expand_path("lib/lolita-translation/locale") describe Lolita::Translation::Locale do let(:klass){ Lolita::Translation::Locale } it "should create new with given locale name" do obj = klass.new(:lv) obj.name.should eq(:lv) obj.short_name.should eq(:lv) end it "should have humanized name" do obj = klass.new(:lv) obj.humanized_short_name.should eq("Lv") end it "should detect locale is active" do obj = klass.new(:lv) I18n.locale = :en obj.should_not be_active I18n.locale = :lv obj.should be_active end end
Version data entries
6 entries across 6 versions & 1 rubygems