Reorder helper method at bottom

This commit is contained in:
Rohan Mitchell
2014-05-21 15:11:14 +10:00
parent 92292c853d
commit 76d1754c32

View File

@@ -19,6 +19,15 @@ RSpec::Matchers.define :have_table_row do |row|
end
end
failure_message_for_should do |text|
"expected to find table row #{@row}"
end
failure_message_for_should_not do |text|
"expected not to find table row #{@row}"
end
def rows_under(node)
node.all('tr').map { |tr| tr.all('th, td').map(&:text) }
end
@@ -31,13 +40,4 @@ RSpec::Matchers.define :have_table_row do |row|
true
end
failure_message_for_should do |text|
"expected to find table row #{@row}"
end
failure_message_for_should_not do |text|
"expected not to find table row #{@row}"
end
end