# Cucumber tableish

**URL:** <https://www.ruby-forum.com/t/cucumber-tableish/184610>\
**Category:** Rails\
**Created:** [March 5, 2010, 6:04am UTC](https://www.ruby-forum.com/t/cucumber-tableish/184610 "2010-03-05T06:04:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![destiney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@destiney](https://www.ruby-forum.com/u/destiney)\
**Post date:** [March 5, 2010, 6:04am UTC](https://www.ruby-forum.com/t/cucumber-tableish/184610/1 "2010-03-05T06:04:28Z")

</div>

Anyone using tableish?

First time trying it, and it is not working or I think it is not.

Here is the failing ‘Then’ code.

Then “$actor should see players table” do |\_, expected\_table|  
html\_table = tableish(‘table#player\_table tr’, ‘td,th’)  
puts html\_table.to\_s  
expected\_table.diff!(html\_table)  
end

puts is giving [] empty array.

Scenario: Activated player should be able to see a listing of accounts  
Given no player with login: ‘reggie’ exists  
And an activated player logged in as ‘reggie’  
And the following player records  
| login | name | email |  
tournaments\_count |  
| john | John D. | removed\_email\_address@domain.invalid | 5  
|  
| jane | Jane Doe | removed\_email\_address@domain.invalid | 3  
|  
When she goes to players  
Then she should see players table  
| john | John D. | 5 |  
| nancy | Jane Doe | 3 |  
| reggie | Reggie Doe | 0 |

Thanks.

GregD

---

<div class="post-metadata">

**Author:** ![destiney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@destiney](https://www.ruby-forum.com/u/destiney)\
**Post date:** [March 5, 2010, 6:19am UTC](https://www.ruby-forum.com/t/cucumber-tableish/184610/2 "2010-03-05T06:19:06Z")

</div>

I did output the db dataset size. It is 3. There are 3 records.

In development ENV, they are showing and table is in the HTML code as  
it should be.

Where is the documentation on tableish? Does it work to evalute/look  
at the html table or I’m I using the wrong method?
