Sha256: 30dd00ba3d7f890419ea9113d6f78ee19d577349a91fffe26a5a5f51bd7c0397

Contents?: true

Size: 512 Bytes

Versions: 11

Compression:

Stored size: 512 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['car'].should == nil
  end

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

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
grosser-fast_gettext-0.4.10 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.11 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.12 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.13 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.14 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.15 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.16 spec/fast_gettext/translation_repository/base_spec.rb
grosser-fast_gettext-0.4.9 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.5.1 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.4.17 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.4.16 spec/fast_gettext/translation_repository/base_spec.rb