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

Version Path
grosser-fast_gettext-0.2.10 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.2.11 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.2.7 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.2.8 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.3.0 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.3.1 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.3.2 spec/aa_unconfigued_spec.rb
grosser-fast_gettext-0.3.3 spec/aa_unconfigued_spec.rb