Commit 246481a
committed
no need to boot a whole dummy Rails app in testing
We only test a single controller in isolation and we can get away with
just initializing a dummy Rails.application object and declaring routes.
This gets rid of the runtime dependency to "rails" in the gemspec, which
in the long run is bad practice for plugins to declare anyway.1 parent e3c7de4 commit 246481a
File tree
37 files changed
+44
-363
lines changed- spec
- controllers
- dummy
- app
- assets
- controllers
- concerns
- helpers
- mailers
- models
- concerns
- bin
- config
- environments
- initializers
- locales
- db
- migrate
- lib/assets
- log
- public
37 files changed
+44
-363
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
4 | 33 | | |
5 | 34 | | |
6 | 35 | | |
| |||
This file was deleted.
Whitespace-only changes.
This file was deleted.
Whitespace-only changes.
This file was deleted.
This file was deleted.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments