From 7133d316cd3cd0ab5e2d4e194bbd2853d724fae4 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 12 Mar 2013 12:56:24 -0700 Subject: [PATCH] Fix specs --- test/index.html | 2 +- test/spec/lib/locale.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/index.html b/test/index.html index 688cf0414..d97f2a6bd 100644 --- a/test/index.html +++ b/test/index.html @@ -163,8 +163,8 @@ - + diff --git a/test/spec/lib/locale.js b/test/spec/lib/locale.js index 3228aa99b..8b4c355fb 100644 --- a/test/spec/lib/locale.js +++ b/test/spec/lib/locale.js @@ -18,6 +18,10 @@ describe("locale", function() { expect(t('test')).to.equal('test'); }); + it("supports a default option", function() { + expect(t('nonesuch', {default: 'default'})).to.equal('default'); + }); + it("falls back to en", function() { locale._current = '__'; expect(t('test')).to.equal('test');