adjust for rspec 3.1 api