[rspec-users] Cucumber feature checking sort order of list
pe at dipe.de
Wed Nov 12 10:05:20 EST 2008
2008/11/12 Joaquin Rivera Padron <joahking at gmail.com>:
> I would like to assure in my scenario that the list shown is in the correct
> order (e.g. ASC or DESC).
> I can spec that but I feel it would be more client-oriented if I could do it
> in the feature... any ideas?
You ask how to implement such a step?
I've done this by using Hpricot - fetching the item-lines from the result into
an array and checking this for the right order.
Not very nice. Any better ideas?
More information about the rspec-users