Project

General

Profile

Actions

Defect #2423

closed

functional test error - RepositoriesCvsControllerTest / test_entry_not_found

Added by yves dufour over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-12-31
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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"

Actions

Also available in: Atom PDF