Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored partial and refactored tests with the chance the markup ma…
…y change again.
- Loading branch information
Showing
4 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<div class="legend highlighttable"> | ||
<p class="gd">Removing from <%=h diff_for %></p> | ||
<p class="gi">Adding to <%=h diff_for %></p> | ||
<div id="legend" class=" highlighttable"> | ||
<p>Legend</p> | ||
<span class="gd">Removing from <%=h diff_for %></span> | ||
<span class="gi">Adding to <%=h diff_for %></span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Then /^changes on the "([^\"]*)" should be displayed as "([^\"]*)"$/ do |legend, class_name| | ||
legend_class = (class_name == "red")? "gd" : "gi" | ||
response.should have_selector :p, attribute = {:class => legend_class} do |content| | ||
response.should have_selector :span, attribute = {:class => legend_class} do |content| | ||
content.should contain legend | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters