Sha256: 6333053958020a96eafc02b08795b86fc5a5ab397e772e926afa5d4b65ff13f6

Contents?: true

Size: 439 Bytes

Versions: 61

Compression:

Stored size: 439 Bytes

Contents

var I18n = require("../../app/assets/javascripts/i18n");

describe("Current locale", function(){
  beforeEach(function(){
    I18n.reset();
  });

  it("returns I18n.locale", function(){
    I18n.locale = "pt-BR";
    expect(I18n.currentLocale()).toEqual("pt-BR");
  });

  it("returns I18n.defaultLocale", function(){
    I18n.locale = null;
    I18n.defaultLocale = "pt-BR";

    expect(I18n.currentLocale()).toEqual("pt-BR");
  });
});

Version data entries

61 entries across 61 versions & 3 rubygems

Version Path
i18n-js-3.9.2 spec/js/current_locale.spec.js
i18n-js-3.9.1 spec/js/current_locale.spec.js
i18n-js-3.9.0 spec/js/current_locale.spec.js
i18n-js-3.8.4 spec/js/current_locale.spec.js
i18n-js-3.8.3 spec/js/current_locale.spec.js
i18n-js-3.8.2 spec/js/current_locale.spec.js
i18n-js-3.8.1 spec/js/current_locale.spec.js
i18n-js-3.8.0 spec/js/current_locale.spec.js
i18n-js-3.7.1 spec/js/current_locale.spec.js
i18n-js-3.7.0 spec/js/current_locale.spec.js
i18n-js-3.6.0 spec/js/current_locale.spec.js
i18n-js-3.5.1 spec/js/current_locale.spec.js
i18n-js-3.5.0 spec/js/current_locale.spec.js
i18n-js-3.4.2 spec/js/current_locale.spec.js
i18n-js-3.4.1 spec/js/current_locale.spec.js
i18n-js-3.4.0 spec/js/current_locale.spec.js
i18n-js-3.3.0 spec/js/current_locale.spec.js
i18n-js-3.2.3 spec/js/current_locale.spec.js
i18n-js-3.2.2 spec/js/current_locale.spec.js
i18n-js-3.2.1 spec/js/current_locale.spec.js