Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 569a1e9

Browse files
committed
Update rake with_clean_environment spec to verify keys ignoring order
1 parent 02233cd commit 569a1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/rspec/core/rake_task_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def silence_output(&block)
170170

171171
expect {
172172
task.with_clean_environment = true
173-
task.ruby_opts = '-e "puts \"Environment: #{ENV.keys}\""'
173+
task.ruby_opts = '-e "puts \"Environment: #{ENV.keys.sort.inspect}\""'
174174
task.run_task false
175175
}.to avoid_outputting.to_stderr.and output(essential_shell_variables).to_stdout_from_any_process
176176
end

0 commit comments

Comments
 (0)