Commit c995df4c2c34ed7e831482864a62cb1c77616d7f
1 parent
54342a30
Exists in
master
and in
28 other branches
Fix terminology test
For some reason terminology was being assigned twice and the test was failing.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/functional/application_controller_test.rb
| @@ -245,8 +245,8 @@ class ApplicationControllerTest < ActionController::TestCase | @@ -245,8 +245,8 @@ class ApplicationControllerTest < ActionController::TestCase | ||
| 245 | env.stubs(:terminology).returns(term) | 245 | env.stubs(:terminology).returns(term) |
| 246 | env.stubs(:id).returns(-9999) | 246 | env.stubs(:id).returns(-9999) |
| 247 | 247 | ||
| 248 | - Noosfero.expects(:terminology=).with(term) | ||
| 249 | get :index | 248 | get :index |
| 249 | + assert_equal Noosfero.terminology, term | ||
| 250 | end | 250 | end |
| 251 | 251 | ||
| 252 | should 'not display categories menu if categories feature disabled' do | 252 | should 'not display categories menu if categories feature disabled' do |