Sha256: 65487cf621772c38dda841b8379d6c282b068a445151c9965321c53c65fe88b8

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 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',2).should == nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grosser-fast_gettext-0.2.11 spec/fast_gettext/translation_repository/base_spec.rb