Sha256: 35b832de8fa5d0881dc8fed6265dcfac47a807e241d1ff735e349d8ebbaf9fae
Contents?: true
Size: 546 Bytes
Versions: 10
Compression:
Stored size: 546 Bytes
Contents
require File.expand_path('spec/spec_helper') describe 'unconfigured' do it "gives a useful error message when trying to just translate" do FastGettext.text_domain = nil begin FastGettext._('x') "".should == "success!?" rescue FastGettext::Storage::NoTextDomainConfigured end end it "gives a useful error message when only locale was set" do FastGettext.locale = 'de' begin FastGettext._('x') "".should == "success!?" rescue FastGettext::Storage::NoTextDomainConfigured end end end
Version data entries
10 entries across 10 versions & 1 rubygems