Skip to content

Commit a00d75c

Browse files
committed
Display code block properly
1 parent f095284 commit a00d75c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/blog/2020-03-24-rspec-rails-4-0-has-been-released.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ We now support [channel specs][1] in order to easily test your Action Cable chan
4848
Rails 6 came with [Action Mailbox][2]. We can now test them using
4949
`:mailbox` flag and use [mailbox specs][4].
5050

51-
For example with `have_been_delivered` matcher:
52-
```ruby
51+
For example with `process` method and `have_been_delivered` matcher:
52+
53+
~~~ ruby
5354
RSpec.describe InboxMailbox, type: :mailbox do
5455
it "marks email as bounced when number tag in subject is valid" do
5556
mail = Mail.new(
@@ -61,7 +62,8 @@ RSpec.describe InboxMailbox, type: :mailbox do
6162
expect(mail_processed).to have_been_delivered
6263
end
6364
end
64-
```
65+
~~~
66+
6567

6668
### Improvements to generators
6769

0 commit comments

Comments
 (0)