Skip to content

Instantly share code, notes, and snippets.

@zapnap
Created October 29, 2008 18:10
Show Gist options
  • Save zapnap/20772 to your computer and use it in GitHub Desktop.
Save zapnap/20772 to your computer and use it in GitHub Desktop.
describe Notifications do
# ...
it "should send a rating invitation email" do
@user = Factory.build(:user)
mail = Notifications.create_rating_invite(@user)
mail.to.should include(@user.email)
mail.body.should match(/#{@user.to_param}/)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment