change to rspec syntax