To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratormailer spec
- Scenarios
-
- simple passing example
-
- Given
-
a file named "spec/mailers/notifications_mailer_spec.rb" with:
require "rails_helper" RSpec.describe NotificationsMailer, :type => :mailer do describe "notify" do let(:mail) { NotificationsMailer.signup } it "renders the headers" do expect(mail.subject).to eq("Signup") expect(mail.to).to eq(["[email protected]"]) expect(mail.from).to eq(["[email protected]"]) end it "renders the body" do expect(mail.body.encoded).to match("Hi") end end end
- When
-
I run
rspec spec
- Then
- the example should pass
Last published over 2 years ago by Jon Rowe.