change to rspec 3 syntax