File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,19 @@ def without_gem(name)
94
94
refute app . spring_env . server_running?
95
95
end
96
96
97
+ test "tells the user that spring is being used when used automatically via binstubs" do
98
+ assert_success "bin/rails runner ''" , stdout : "Running via Spring preloader in process"
99
+ assert_success app . spring_test_command , stdout : "Running via Spring preloader in process"
100
+ end
101
+
102
+ test "does not tell the user that spring is being used when used automatically via binstubs but quiet is enabled" do
103
+ File . write ( "#{ app . user_home } /.spring.rb" , "Spring.quiet = true" )
104
+ assert_success "bin/rails runner ''"
105
+ artifacts = app . run ( "bin/rails runner ''" )
106
+ assert !artifacts [ :stdout ] . include? ( "Running via Spring preloader in process" ) ,
107
+ "expected stdout to not include 'Running via Spring preloader in process'.\n \n #{ app . debug ( artifacts ) } "
108
+ end
109
+
97
110
test "test changes are picked up" do
98
111
assert_speedup do
99
112
assert_success app . spring_test_command , stdout : "0 failures"
You can’t perform that action at this time.
0 commit comments