[rspec-users] Cucumber feature checking sort order of list
Joaquin Rivera Padron
joahking at gmail.com
Wed Nov 12 11:03:07 EST 2008
> Matt Wynne:
> How about something more like
>
> Given there are two items in a list: "Zulu and Abba"
> And I have sorted the list alphabetically
> Then "Abba" should appear before "Zulu"
>
> Then /"(.*)" should appear before "(.*)"/ do |first_example,
> second_example|
> response.body.should =~ /#{first_example}.*#{second_example}/
> end
yep, this one looks better to me
thanks Matt
jk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081112/f4a182ca/attachment.html>
More information about the rspec-users
mailing list