Hi Jarmo, thanks for replying
I'll clarify a bit what I would like in my rspec report.
I don't want to make a screenshot after every spec, just during some of the specs which test Flot graphs (a Javascript library for displaying graphs).
These Flot graphs are pretty hard to interact with using Watir-Webdriver thus I want to add a screenshot to the report (or a link to the screenshot) so our testers can quickly check if nothing weird is going on.
So my (simplified) spec looks like this:
describe "do something once logged in" do
it "should screenshot the flot graph" do
screenshot.save 'flot.png'
end
end
Then the generated report should look like this:

Hopefully this clears up my question.
Is this possible with just watir-rspec or is some form of monkey patching required?
Regards,
Arjen