-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2727 from threeplanetssoftware/update-documentati…
…on-for-code-blocks Improve code blocks in documentation
- Loading branch information
Showing
11 changed files
with
176 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,22 @@ behavior and expectations. | |
|
||
## Examples | ||
|
||
require "rails_helper" | ||
```ruby | ||
require "rails_helper" | ||
|
||
RSpec.describe Notifications, type: :mailer do | ||
describe "notify" do | ||
let(:mail) { Notifications.signup } | ||
RSpec.describe Notifications, type: :mailer do | ||
describe "notify" do | ||
let(:mail) { Notifications.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 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 | ||
it "renders the body" do | ||
expect(mail.body.encoded).to match("Hi") | ||
end | ||
end | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.