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

Commit 30cfad0

Browse files
authored
Merge pull request #2720 from bjfish/update-rake-task-spec-with-clean-environment
Update rake with_clean_environment spec to verify keys ignoring order
2 parents c91f74c + 569a1e9 commit 30cfad0

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)