Commit 829a79635565613697c1d95315af5273c144f819
1 parent
f5e79695
Exists in
staging
and in
16 other branches
fix unit test logic
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
test/unit/noosfero_test.rb
@@ -44,8 +44,9 @@ class NoosferoTest < ActiveSupport::TestCase | @@ -44,8 +44,9 @@ class NoosferoTest < ActiveSupport::TestCase | ||
44 | 44 | ||
45 | should 'change locale temporarily' do | 45 | should 'change locale temporarily' do |
46 | current_locale = FastGettext.locale | 46 | current_locale = FastGettext.locale |
47 | - Noosfero.with_locale(current_locale == 'pt' ? 'en' : 'pt' ) do | ||
48 | - assert_equal 'pt', FastGettext.locale | 47 | + another_locale = current_locale == 'pt' ? 'en' : 'pt' |
48 | + Noosfero.with_locale(another_locale) do | ||
49 | + assert_equal another_locale, FastGettext.locale | ||
49 | end | 50 | end |
50 | assert_equal current_locale, FastGettext.locale | 51 | assert_equal current_locale, FastGettext.locale |
51 | end | 52 | end |