Ah, yes, thank you! I feel a little foolish now. It hadn't occured to me it needed to be in a TestCase when I set out to test it a little first in irb. Thanks for the quick response Jonathan