Sha256: cf35cec915193542426d8a2be99f7115fdeffe0b885d56eed53087c9c1984a5d

Contents?: true

Size: 555 Bytes

Versions: 16

Compression:

Stored size: 555 Bytes

Contents

current_folder = File.dirname(__FILE__)
require File.join(current_folder,'..','..','spec_helper')
require 'fast_gettext/translation_repository/base'

describe 'FastGettext::TranslationRepository::Base' do
  before do
    @rep = FastGettext::TranslationRepository::Base.new('x')
  end
  it "can be built" do
    @rep.available_locales.should == []
  end
  it "cannot translate" do
    @rep.locale = 'de'
    @rep['car'].should == nil
  end
  it "cannot pluralize" do
    @rep.locale = 'de'
    @rep.plural('Axis','Axis').should == ['Axis','Axis']
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
grosser-fast_gettext-0.3.0 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.1 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.2 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.3 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.4 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.5 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.6 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.7 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.3.8 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.0 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.2 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.3 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.4 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.5 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.7 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.8 spec/fast_gettext/translation_repository/base_spec.rb