Skip to content

Commit

Permalink
rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushC committed Feb 20, 2024
1 parent be305ef commit 2088b07
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec/mailers/teacher_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
expect(email.body.encoded).to include("Hi Bob")
end

it "Sends to Both School and Personal Email When Possible" do
teacher = teachers(:barney)
email = TeacherMailer.welcome_email(teacher)
email.deliver_now
expect(email.from[0]).to eq("[email protected]")
expect(email.to[0]).to eq("[email protected]")
expect(email.to[1]).to eq("[email protected]")
expect(email.subject).to eq("Welcome to The Beauty and Joy of Computing!")
expect(email.body.encoded).to include("Hi Barney")
end
it "Sends to Both School and Personal Email When Possible" do
teacher = teachers(:barney)
email = TeacherMailer.welcome_email(teacher)
email.deliver_now
expect(email.from[0]).to eq("[email protected]")
expect(email.to[0]).to eq("[email protected]")
expect(email.to[1]).to eq("[email protected]")
expect(email.subject).to eq("Welcome to The Beauty and Joy of Computing!")
expect(email.body.encoded).to include("Hi Barney")
end


it "Sends Deny Email" do
Expand Down

0 comments on commit 2088b07

Please sign in to comment.