Sha256: 84a87437786edc1a74248ced967850f31fb3ce34ea6387a6bb213a6b04adb6ea

Contents?: true

Size: 441 Bytes

Versions: 9

Compression:

Stored size: 441 Bytes

Contents

require 'spec/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['car'].should == nil
  end

  it "cannot pluralize" do
    @rep.plural('Axis','Axis').should == ['Axis','Axis']
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fast_gettext-0.5.10 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.9 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.8 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.7 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.6 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.5 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.4 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.3 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.2 spec/fast_gettext/translation_repository/base_spec.rb