Commit a428956
committed
Fix
- ### Problem
Rails made a change in rails/rails@d4367eb
and TestFixtures don't make use of `method_name` anymore, but simply
`name`.
`name` on RSpec raises a `WrongScopeError` when called within an
example.
This patch overrides `name` to return the example name instead.WrongScopeError being thrown on Rails master:1 parent c642aec commit a428956
File tree
2 files changed
+14
-0
lines changed- lib/rspec/rails
- spec/rspec/rails
2 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
0 commit comments