Project

General

Profile

Actions

Defect #2423

closed

functional test error - RepositoriesCvsControllerTest / test_entry_not_found

Added by yves dufour almost 16 years ago. Updated almost 16 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 #1

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).

Actions #2

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from New to Closed

See #2424.

Actions

Also available in: Atom PDF