Skip to content
This repository
Browse code

sort option keys to ensure that libs precede requires

  • Loading branch information...
commit bd7a28ef56ce1eb9e233e79de03bbb15dfd5751b 1 parent f988c5e
David Chelimsky dchelimsky authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 lib/rspec/core/configuration_options.rb
6 lib/rspec/core/configuration_options.rb
@@ -15,11 +15,15 @@ def initialize(args)
15 15 end
16 16
17 17 def configure(config)
18   - options.keys.sort{|a,b| a.to_s <=> b.to_s}.each do |key|
  18 + sorted_keys.each do |key|
19 19 config.send("#{key}=", options[key])
20 20 end
21 21 end
22 22
  23 + def sorted_keys
  24 + options.keys.sort{|a,b| a.to_s <=> b.to_s}
  25 + end
  26 +
23 27 def drb_argv
24 28 argv = []
25 29 argv << "--color" if options[:color_enabled]

0 comments on commit bd7a28e

Please sign in to comment.
Something went wrong with that request. Please try again.