File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -263,13 +263,13 @@ def exec_name
263
263
end
264
264
265
265
test "runner command sets Rails environment from command-line options" do
266
- assert_success "bin/rails runner -e production 'puts Rails.env'" , stdout : "production "
267
- assert_success "bin/rails runner --environment=production 'puts Rails.env'" , stdout : "production "
266
+ assert_success "bin/rails runner -e test 'puts Rails.env'" , stdout : "test "
267
+ assert_success "bin/rails runner --environment=test 'puts Rails.env'" , stdout : "test "
268
268
end
269
269
270
270
test "forcing rails env via environment variable" do
271
- app . env [ 'RAILS_ENV' ] = 'production '
272
- assert_success "bin/rake -p 'Rails.env'" , stdout : "production "
271
+ app . env [ 'RAILS_ENV' ] = 'test '
272
+ assert_success "bin/rake -p 'Rails.env'" , stdout : "test "
273
273
end
274
274
275
275
test "setting env vars with rake" do
You can’t perform that action at this time.
0 commit comments