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