From 76d1754c32509b9fc0290aec9ffcfe87df196c93 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Wed, 21 May 2014 15:11:14 +1000 Subject: [PATCH] Reorder helper method at bottom --- spec/support/matchers/table_matchers.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/support/matchers/table_matchers.rb b/spec/support/matchers/table_matchers.rb index d0eb28d641..146002b751 100644 --- a/spec/support/matchers/table_matchers.rb +++ b/spec/support/matchers/table_matchers.rb @@ -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