features/step_definitions/table_steps.rb in activeadmin-1.0.0.pre4 vs features/step_definitions/table_steps.rb in activeadmin-1.0.0.pre5
- old
+ new
@@ -57,12 +57,10 @@
end
end
end
module TableMatchHelper
-
-
# @param table [Array[Array]]
# @param expected_table [Array[Array[String]]]
# The expected_table values are String. They are converted to
# Regexp when they start and end with a '/'
# Example:
@@ -95,14 +93,12 @@
expect(cell).to match /#{expected_cell[1..-2]}/
else
expect((cell || "").strip).to eq expected_cell
end
end
+end
-end # module TableMatchHelper
-
World(TableMatchHelper)
-
# Usage:
#
# I should see the "invoices" table:
# | Invoice # | Date | Total Amount |