Sha256: a6e8ca517f8ba4fe3a2f0ed19200de3d4fca701e03426e016757787a1e769615

Contents?: true

Size: 618 Bytes

Versions: 14

Compression:

Stored size: 618 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe ExvoGlobalize do

  context "Polish pluralization rules" do

    before { I18n.locale = :pl }

    specify { I18n.t(:mail, :count => 0).should  match(/listów$/) }
    specify { I18n.t(:mail, :count => 1).should  match(/list$/)   }
    specify { I18n.t(:mail, :count => 3).should  match(/listy$/)  }
    specify { I18n.t(:mail, :count => 5).should  match(/listów$/) }
    specify { I18n.t(:mail, :count => 12).should match(/listów$/) }
    specify { I18n.t(:mail, :count => 22).should match(/listy$/)  }

    after { I18n.locale = I18n.default_locale }

  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
exvo_globalize-0.6.0 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.6 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.5 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.4 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.3 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.2 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.1 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.5.0 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.4.0 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.3.2 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.3.1 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.3.0 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.2.1 spec/exvo_globalize/pluralizations_spec.rb
exvo_globalize-0.2.0 spec/exvo_globalize/pluralizations_spec.rb