Commit 28a544fd38befb8b7d40b5326e15d4ddefae1cd3
1 parent
50b0d087
Exists in
master
and in
22 other branches
Directing test to the intended layout
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
test/functional/application_controller_test.rb
... | ... | @@ -191,6 +191,7 @@ class ApplicationControllerTest < Test::Unit::TestCase |
191 | 191 | end |
192 | 192 | |
193 | 193 | should 'display dropdown for select language' do |
194 | + @controller.stubs(:get_layout).returns('application') | |
194 | 195 | Noosfero.expects(:locales).returns({ 'en' => 'English', 'pt_BR' => 'Português Brasileiro', 'fr' => 'Français', 'it' => 'Italiano' }).at_least_once |
195 | 196 | get :index, :lang => 'en' |
196 | 197 | assert_tag :tag => 'option', :attributes => { :value => 'en', :selected => 'selected' }, :content => 'English' | ... | ... |