Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

Commit

Permalink
Fixed the assert_select on the highlghted header macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Feb 5, 2009
1 parent 430528d commit 7eee6f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shoulda_macros/sortable_table.rb
Expand Up @@ -56,7 +56,9 @@ def should_display_sortable_table_header_for(*valid_sorts)

def should_display_highlighted_sortable_table_header_for column, order = "ascending"
should "have the #{order} class on the #{column} table header" do
assert_select 'a[href*=?][class*=?]', "sort=#{column}", order
assert_select('th[class=?]', order) do |tr|
assert_select 'a[href*=?]', "sort=#{column}"
end
end
end

Expand Down

0 comments on commit 7eee6f2

Please sign in to comment.