Rspec logging

Hi,

I am trying to find some output logging in the Rspec API

As 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
       puts "pass" unless ui.does_the_html_include?(@text)== 0 #regex
       browser.back
     end
end
</code>

Or am I structuring this wrong?

Regards

Aidy