test/translator_test.rb in titlezilla-0.1.3 vs test/translator_test.rb in titlezilla-0.1.4

- old
+ new

@@ -74,9 +74,14 @@ it 'should lookup application title when no namespaced app title provided' do load_translations({ application: 'App' }) t = Translator.new('admin/main', :index) t.application_title.must_equal 'App' end + + it 'should failt gracefully if no translation is loaded' do + t = Translator.new(:main, :index) + t.application_title.must_equal nil + end end describe '#meta_title' do it 'should return app title if action title not provided' do load_translations({ application: 'App' })