Rspec 3 and 2 compatibility