proc to support both rspec 2 & 3