> 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
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users