adapting rspec syntax