test/translator_test.rb in titlezilla-0.1.0 vs test/translator_test.rb in titlezilla-0.1.1

- old
+ new

@@ -83,8 +83,15 @@ load_translations({ application: 'App', main: { index: 'Index' } }) ::Titlezilla.configure { |c| c.separator = ' > ' } t = Translator.new(:main, :index) t.meta_title.must_equal 'Index > App' end + + it 'should override title' do + load_translations({ application: 'App', main: { index: 'Index' } }) + t = Translator.new(:main, :index) + t.title 'Overrided' + t.meta_title.must_equal 'Overrided | App' + end end end end