changing rspec syntax to utilize 'expect'