senny / corner_stones

capybara building blocks for acceptance tests.
18 stars 8 forks source link

Functionality to check if a table is empty #28

Closed bjoernbur closed 11 years ago

bjoernbur commented 11 years ago

As a developer I would like to test if a table is empty (doesn't contain any rows).

With the current code I have to do the following:

table.rows.should be_empty

With this patch I can ask the table if it is empty:

table.should be_empty
senny commented 11 years ago

:yellow_heart: :green_heart: :yellow_heart: :green_heart: :yellow_heart: