| Issue 20: | Tests issues warnings when using assert_select in any rendered page with a flash notice | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Create a test in a situation where the response will include a flash
notice and try to assert that it have a specified html tag.
What is the expected output? What do you see instead?
Is expected nothing. But a warning is printed.
What version of the product are you using? On what operating system?
trunk. Ubuntu 7.04
Please provide any additional information below.
In main and admin layouts the flash message is defined as:
<% if flash[:notice] -%>
<div id="flash">
...
<p>
<a href="#" class="button" style="width:80px;" onmousedown="new
Effect.BlindUp($('flash'))" />Close</a>
</p>
</div>
...
<% end -%>
The <a> tag is closed two times: <a ... /></a> it should be <a ... ></a>
Regards.
Apr 8, 2008
Project Member
#1
subim...@gmail.com
Status:
Fixed
|