Sha256: fb958c1334a52ca2f5fbd39bd3a9fb185b13e67ab516eb400d752d5c3fffe070

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

require "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 == []
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fast_gettext-0.7.0 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.6.12 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.6.11 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.6.10 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.6.9 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.6.8 spec/fast_gettext/translation_repository/base_spec.rb
fast_gettext-0.6.7 spec/fast_gettext/translation_repository/base_spec.rb