support old and new rspec