Sha256: d5b0961497c446bc365e3f8277c4e7d7cb6357c2b9f94c39ace5f1b046ec6fa7
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "Signup Email" do include EmailSpec::Helpers include EmailSpec::Matchers include ActionController::UrlWriter before(:all) do @email = UserMailer.create_signup("jojo@yahoo.com", "Jojo Binks") end it "should be set to be delivered to the email passed in" do @email.should deliver_to("jojo@yahoo.com") end it "should contain the user's message in the mail body" do @email.body.should have_text(/Jojo Binks/) end it "should contain a link to the confirmation link" do @email.body.should have_text(/#{confirm_account_url}/) end it "should have the correct subject" do @email.subject.should =~ /Account confirmation/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bmabey-email_spec-0.0.6 | spec/rails_root/spec/models/user_mailer_spec.rb |