From 829a79635565613697c1d95315af5273c144f819 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 5 Jul 2016 14:02:26 -0300 Subject: [PATCH] fix unit test logic --- test/unit/noosfero_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/noosfero_test.rb b/test/unit/noosfero_test.rb index 490efe1..837f080 100644 --- a/test/unit/noosfero_test.rb +++ b/test/unit/noosfero_test.rb @@ -44,8 +44,9 @@ class NoosferoTest < ActiveSupport::TestCase should 'change locale temporarily' do current_locale = FastGettext.locale - Noosfero.with_locale(current_locale == 'pt' ? 'en' : 'pt' ) do - assert_equal 'pt', FastGettext.locale + another_locale = current_locale == 'pt' ? 'en' : 'pt' + Noosfero.with_locale(another_locale) do + assert_equal another_locale, FastGettext.locale end assert_equal current_locale, FastGettext.locale end -- libgit2 0.21.2