typo in pt
updated rspec syntax to expect(method).to do(something)