[rspec-users] additional logging

aidy lewis aidy.lewis at googlemail.com
Thu Jun 5 08:49:16 EDT 2008


Hi,

I am using the 'spec/story' module with Fire(Watir).

Is there additional logging?

I don't want to do this:

<code>
  Then "the resultant links are displayed with the search text in each
description" do
    browser.links.each do |lnk|
      if lnk.id =~ /programmeLink/
        lnk.click
        sleep 0.5
        puts "pass" unless ui.does_the_html_include?(@text)== 0 #regex
        browser.back
      end
  end
 </code>

Or am I structuring this wrong? Is it one "Then" per verification
point? Problem with that is I have a dynamic number of verification
points.

Regards

Aidy

-- 
Aidy
www.agiletester.co.uk


More information about the rspec-users mailing list