Commit 7d35df3
authored
Explicitly require helper in test_case (#1297)
Currently, the helper is required through the Rake test task, which is
very implicit and means when running some tests directly some methods
are not available.
For example, running `bundle exec ruby -Itest
PATH_TO_RDOC/test/rdoc/test_rdoc_comment.rb` will trigger
`NoMethodError: undefined method 'assert_linear_performance' for an
instance of RDocCommentTest` because `test/lib/helper.rb` is not
required.
This commit makes the test case always require the helper and remove the
related options from the Rake test task.1 parent 9b5ce6d commit 7d35df3
2 files changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments