Commit 829a79635565613697c1d95315af5273c144f819

Authored by Leandro Santos
1 parent f5e79695

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 44  
45 45 should 'change locale temporarily' do
46 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 50 end
50 51 assert_equal current_locale, FastGettext.locale
51 52 end
... ...