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

Update rake with_clean_environment spec to verify keys ignoring order #2720

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/rspec/core/rake_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def silence_output(&block)

expect {
task.with_clean_environment = true
task.ruby_opts = '-e "puts \"Environment: #{ENV.keys}\""'
task.ruby_opts = '-e "puts \"Environment: #{ENV.keys.sort.inspect}\""'
task.run_task false
}.to avoid_outputting.to_stderr.and output(essential_shell_variables).to_stdout_from_any_process
end
Expand Down