Sha256: 29dc9fd8ff33e983d4b34a77af0fcbc0de3b0145de633f293e432b0f4a62dbb2

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

require 'spec_helper'

describe FbLocalizer::FbLocalizerHelpers do
  # TESTS
  # Correct locales
  context "when we check for catalan" do
    it "should return ca_ES" do
      helper.get_fb_locale("ca").should == "ca_ES"
    end
  end

  context "when we check for english" do
    it "should return en_PI" do
      helper.get_fb_locale("en").should == "en_PI"
    end
  end


  # Invalid checks
  context "when we check for spanish" do
    it "should not return ca_ES" do
      helper.get_fb_locale("es").should_not == "ca_ES"
    end
  end

  context "when we check for welsh" do
    it "should not return ca_ES" do
      helper.get_fb_locale("cy").should_not == "ca_ES"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fb-localizer-0.1.2 spec/helpers/fb-localizer_spec.rb
fb-localizer-0.1.1 spec/helpers/fb-localizer_spec.rb
fb-localizer-0.1.0 spec/helpers/fb-localizer_spec.rb