-
Notifications
You must be signed in to change notification settings - Fork 378
Commit 410bac6
Fix testing issues with Rails hot reloading setup
Configured testing so that:
* If we're not running a webpack process to watch the client JS files,
then we build the client or server files.
* Test will let you know if it's skipping building.
Expression used to see if a watch process is running:
`pgrep -fl '\\-w \\-\\-config webpack\\.#{type}\\.rails\\.build\\.config\\.js'`
* Renamed asset helpers so usage is like this:
<%= env_stylesheet_link_tag 'application_prod', 'application_dev', media: 'all', 'data-turbolinks-track' => true %>
<%= env_javascript_include_tag nil, 'http://localhost:3500/vendor-bundle.js' %>
<%= env_javascript_include_tag nil, 'http://localhost:3500/app-bundle.js' %>
<%= env_javascript_include_tag 'application_prod', 'application_dev', 'data-turbolinks-track' => true %>
TODO: Should we consider having tests use the Rails hot reload server?1 parent 5396a79 commit 410bac6
File tree
19 files changed
+103
-30
lines changed- app
- assets/javascripts
- helpers
- views
- comments
- layouts
- pages
- client
- app/bundles/comments/components/CommentBox/CommentList/Comment
- config
- initializers
- docs
- lib/tasks
- spec
- support
19 files changed
+103
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | + | ||
3 | + | ||
2 | 4 | | |
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
3 | 10 | | |
4 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | + | ||
130 | 131 | | |
131 | - | ||
132 | - | ||
133 | - | ||
134 | - | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + | ||
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | + | ||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | - | ||
3 | - | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | - | ||
8 | - | ||
9 | + | ||
10 | + | ||
11 | + | ||
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | - | ||
4 | + | ||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | - | ||
9 | + | ||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | - | ||
6 | - | ||
7 | - | ||
8 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | - | ||
6 | + | ||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | - | ||
19 | + | ||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | - | ||
24 | + | ||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | - | ||
31 | + | ||
32 | 32 | | |
33 | - | ||
33 | + | ||
34 | + | ||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | + | ||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments