Sha256: df3a0fb350db90995a837f581157328ddcda0dffd1ba5d2c4a9df0bd12b52af0
Contents?: true
Size: 534 Bytes
Versions: 8
Compression:
Stored size: 534 Bytes
Contents
require File.join(File.dirname(__FILE__),'spec_helper') describe 'unconfigured' do it "gives a useful error message when trying to just translate" do FastGettext.text_domain = nil x=1 begin FastGettext._('x') rescue x=$! end x.to_s.should =~ /NoTextDomainConfigured/ end it "gives a useful error message when only locale was set" do FastGettext.locale = 'de' x=1 begin FastGettext._('x') rescue x=$! end x.to_s.should =~ /NoTextDomainConfigured/ end end
Version data entries
8 entries across 8 versions & 1 rubygems