Commit 5c2c22bfc1fe96642ccd2b0c3de0664f8d672215

Authored by Antonio Terceiro
1 parent 91d3e84c

ActionItem830: fixing test

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
test/unit/language_helper_test.rb
@@ -7,10 +7,11 @@ class LanguageHelperTest < Test::Unit::TestCase @@ -7,10 +7,11 @@ class LanguageHelperTest < Test::Unit::TestCase
7 7
8 should 'return current language' do 8 should 'return current language' do
9 locale = mock 9 locale = mock
10 - locale.expects(:to_s).returns('pt_BR')  
11 - GetText.stubs(:locale).returns(locale) 10 + locale.stubs(:to_s).returns('pt_BR')
  11 + locale.stubs(:language).returns('pt')
  12 + stubs(:locale).returns(locale)
12 13
13 - assert_equal 'pt_BR', self.language 14 + assert_equal 'pt', self.language
14 end 15 end
15 16
16 should 'remove country code for TinyMCE' do 17 should 'remove country code for TinyMCE' do