File tree 1 file changed +11
-10
lines changed 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,17 @@ def test_rake_task_webpacker_check_binstubs
28
28
refute_includes output , "webpack binstubs not found."
29
29
end
30
30
31
+ def test_check_node_version
32
+ output = Dir . chdir ( test_app_path ) { `rake webpacker:check_node 2>&1` }
33
+ refute_includes output , "Webpacker requires Node.js"
34
+ end
35
+
36
+ def test_check_yarn_version
37
+ output = Dir . chdir ( test_app_path ) { `rake webpacker:check_yarn 2>&1` }
38
+ refute_includes output , "Yarn not installed"
39
+ refute_includes output , "Webpacker requires Yarn"
40
+ end
41
+
31
42
def test_rake_webpacker_yarn_install_in_non_production_environments
32
43
assert_includes test_app_dev_dependencies , "right-pad"
33
44
@@ -52,16 +63,6 @@ def test_rake_webpacker_yarn_install_in_production_environment
52
63
"Expected only production dependencies to be installed"
53
64
end
54
65
55
- def test_check_node_version
56
- output = Dir . chdir ( test_app_path ) { `rake webpacker:check_node 2>&1` }
57
- assert_empty output
58
- end
59
-
60
- def test_check_yarn_version
61
- output = Dir . chdir ( test_app_path ) { `rake webpacker:check_yarn 2>&1` }
62
- assert_empty output
63
- end
64
-
65
66
private
66
67
def test_app_path
67
68
File . expand_path ( "test_app" , __dir__ )
You can’t perform that action at this time.
0 commit comments