Skip to content

Commit 02fe0f7

Browse files
Fix indentation so that Transactions.md ordered list is numbered correctly.
1 parent 283d8c6 commit 02fe0f7

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

features/Transactions.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,30 @@ guidelines:
6666

6767
1. Be sure to clean up any data in an `after(:context)` hook:
6868

69-
```ruby
70-
before(:context) do
71-
@widget = Widget.create!
72-
end
69+
```ruby
70+
before(:context) do
71+
@widget = Widget.create!
72+
end
7373

74-
after(:context) do
75-
@widget.destroy
76-
end
77-
```
74+
after(:context) do
75+
@widget.destroy
76+
end
77+
```
7878

79-
If you don't do that, you'll leave data lying around that will eventually
79+
If you don't do that, you'll leave data lying around that will eventually
8080
interfere with other examples.
8181

8282
2. Reload the object in a `before(:example)` hook.
8383

84-
```ruby
85-
before(:context) do
86-
@widget = Widget.create!
87-
end
84+
```ruby
85+
before(:context) do
86+
@widget = Widget.create!
87+
end
8888
89-
before(:example) do
90-
@widget.reload
91-
end
92-
```
89+
before(:example) do
90+
@widget.reload
91+
end
92+
```
9393

9494
Even though database updates in each example will be rolled back, the
9595
object won't _know_ about those rollbacks so the object and its backing

0 commit comments

Comments
 (0)