Sha256: 8cbb512a6d6c178082082c9f2717aaba5141dbb62ae0656a46a682a7f1cf9f66

Contents?: true

Size: 520 Bytes

Versions: 21

Compression:

Stored size: 520 Bytes

Contents

require "spec_helper"

module Lines
  describe UserMailer do
    describe "password_reset" do
      let(:user) { FactoryGirl.create(:user) }
      let(:mail) { UserMailer.password_reset(user) }

      before(:each) do
        user.create_reset_digest
      end

      it "renders the headers" do
        mail.subject.should eq("Forgot your LINES password?")
        mail.to.should eq([user.email])
      end

      it "renders the body" do
        mail.body.encoded.should match("password")
      end
    end

  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
jeygeethanmedia-inkpen-1.2.6.2 spec/mailers/lines/user_mailer_spec.rb
jeygeethanmedia-inkpen-1.2.6.1 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.6.1 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.6 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.5 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.3 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.2 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.1.1 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2.1 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.2 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.5.3 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.5.2 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.5.1 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.5 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.4 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.3 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.2 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.1 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.1.0 spec/mailers/lines/user_mailer_spec.rb
lines-engine-1.0.0 spec/mailers/lines/user_mailer_spec.rb