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