Skip to content

Commit b80f43c

Browse files
authored
Merge pull request rspec#2720 from bjfish/update-rake-task-spec-with-clean-environment
Update rake with_clean_environment spec to verify keys ignoring order
2 parents 2ac4a1d + c776afa commit b80f43c

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)