File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
* Fix problems with the implementation of the new "Running via Spring preloader"
4
4
message (see #456 , #457 )
5
+ * Print "Running via Spring preloader" message to stderr, not stdout
5
6
6
7
## 1.6.1
7
8
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ def serve(client)
157
157
IGNORE_SIGNALS . each { |sig | trap ( sig , "DEFAULT" ) }
158
158
trap ( "TERM" , "DEFAULT" )
159
159
160
- puts "Running via Spring preloader in process #{ Process . pid } " unless Spring . quiet
160
+ STDERR . puts "Running via Spring preloader in process #{ Process . pid } " unless Spring . quiet
161
161
162
162
ARGV . replace ( args )
163
163
$0 = command . exec_name
Original file line number Diff line number Diff line change @@ -103,14 +103,14 @@ def without_gem(name)
103
103
end
104
104
105
105
test "tells the user that spring is being used when used automatically via binstubs" do
106
- assert_success "bin/rails runner ''" , stdout : "Running via Spring preloader in process"
107
- assert_success app . spring_test_command , stdout : "Running via Spring preloader in process"
106
+ assert_success "bin/rails runner ''" , stderr : "Running via Spring preloader in process"
107
+ assert_success app . spring_test_command , stderr : "Running via Spring preloader in process"
108
108
end
109
109
110
110
test "does not tell the user that spring is being used when used automatically via binstubs but quiet is enabled" do
111
111
File . write ( "#{ app . user_home } /.spring.rb" , "Spring.quiet = true" )
112
112
assert_success "bin/rails runner ''"
113
- refute_output_includes "bin/rails runner ''" , stdout : 'Running via Spring preloader in process'
113
+ refute_output_includes "bin/rails runner ''" , stderr : 'Running via Spring preloader in process'
114
114
end
115
115
116
116
test "test changes are picked up" do
You can’t perform that action at this time.
0 commit comments