code deduplication

move the rspec2 catcher to support.rb