Sha256: d8def7ffb083f7c64e60df015c8fbda01e0e3acc77b354ad186bb7827fb29c65

Contents?: true

Size: 524 Bytes

Versions: 10

Compression:

Stored size: 524 Bytes

Contents

require "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

Version Path
fast_gettext-0.8.1 spec/aa_unconfigued_spec.rb
fast_gettext-0.8.0 spec/aa_unconfigued_spec.rb
fast_gettext-0.7.1 spec/aa_unconfigued_spec.rb
fast_gettext-0.7.0 spec/aa_unconfigued_spec.rb
fast_gettext-0.6.12 spec/aa_unconfigued_spec.rb
fast_gettext-0.6.11 spec/aa_unconfigued_spec.rb
fast_gettext-0.6.10 spec/aa_unconfigued_spec.rb
fast_gettext-0.6.9 spec/aa_unconfigued_spec.rb
fast_gettext-0.6.8 spec/aa_unconfigued_spec.rb
fast_gettext-0.6.7 spec/aa_unconfigued_spec.rb