rewrote rspec expectations