Defect #2423
closedfunctional test error - RepositoriesCvsControllerTest / test_entry_not_found
0%
Description
def test_entry_not_found
get :entry, :id => 1, :path => ['sources', 'zzz.c']
assert_tag :tag => 'div', :attributes => { :class => /error/ },
:content => /The entry or revision was not found in the repository/
end
leads to an error.... as in application.rb, the render_error method renders nothing !
def render_error(msg)
flash.now[:error] = msg
render :nothing => true, :layout => !request.xhr?, :status => 500
end
bypassed by testing the flash[:error]
assert flash[:error], "The entry or revision was not found in the repository"
Updated by Jean-Philippe Lang almost 16 years ago
leads to an error
Once again, tests pass for me.
So if you've got a failure or an error, please post the failure with the error stack trace if any. I can't guess what happens when you run the tests.
as in application.rb, the render_error method renders nothing !
You're wrong. It renders the layout (that include flash messages).