From f06ef0c716c4bc10364f12a888062466524cc253 Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Wed, 8 Oct 2014 03:48:05 +0000 Subject: [PATCH] VRFS-1430 fixed broken tests --- ruby/spec/mailers/batch_mailer_spec.rb | 2 +- ruby/spec/mailers/user_mailer_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/spec/mailers/batch_mailer_spec.rb b/ruby/spec/mailers/batch_mailer_spec.rb index b915999e8..2468dc285 100644 --- a/ruby/spec/mailers/batch_mailer_spec.rb +++ b/ruby/spec/mailers/batch_mailer_spec.rb @@ -16,7 +16,7 @@ describe BatchMailer do # it { BatchMailer.deliveries.length.should == 1 } - it { mail['from'].to_s.should == EmailBatch::DEFAULT_SENDER } + it { mail['from'].to_s.should == "JamKazam " } it { mail.subject.should == batch.subject } it { mail.multipart?.should == true } # because we send plain + html diff --git a/ruby/spec/mailers/user_mailer_spec.rb b/ruby/spec/mailers/user_mailer_spec.rb index c6cd4db5b..62b1472c6 100644 --- a/ruby/spec/mailers/user_mailer_spec.rb +++ b/ruby/spec/mailers/user_mailer_spec.rb @@ -75,7 +75,7 @@ describe UserMailer do # verify that the messages are correctly configured it { mail.html_part.body.include?("Reset").should be_true } - it { mail.text_part.body.include?("Reset").should be_true } + it { mail.text_part.body.include?("change your JamKazam password").should be_true } end describe "should send change password confirmation" do