diff --git a/ruby/spec/mailers/batch_mailer_spec.rb b/ruby/spec/mailers/batch_mailer_spec.rb index fda7ed191..a2d45dd6c 100644 --- a/ruby/spec/mailers/batch_mailer_spec.rb +++ b/ruby/spec/mailers/batch_mailer_spec.rb @@ -6,6 +6,7 @@ describe BatchMailer do let (:mail) { BatchMailer.deliveries[0] } batch = FactoryGirl.create(:email_batch) + batch.update_attribute(:test_emails, "jonathan@jamkazam.com") batch.send_test_batch it { BatchMailer.deliveries.length.should == 1 } @@ -18,8 +19,6 @@ describe BatchMailer do it { mail.text_part.decode_body.should match(/#{Regexp.escape(batch.body)}/) } it { batch.testing?.should == true } - binding.pry - it { batch.qualified_count.should == batch.test_count } end end