updated rspec syntax