Sha256: 6ef3a5e1684305e3e75ef0764386913fce9e43a3bdcccc233b527809884f0f3a

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 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
    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

1 entries across 1 versions & 1 rubygems

Version Path
grosser-fast_gettext-0.2.6 spec/aa_unconfigued_spec.rb