Skip to content
Browse files

sort option keys to ensure that libs precede requires

  • Loading branch information...
1 parent f988c5e commit bd7a28ef56ce1eb9e233e79de03bbb15dfd5751b @dchelimsky dchelimsky committed Jun 13, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/rspec/core/configuration_options.rb
View
6 lib/rspec/core/configuration_options.rb
@@ -15,11 +15,15 @@ def initialize(args)
end
def configure(config)
- options.keys.sort{|a,b| a.to_s <=> b.to_s}.each do |key|
+ sorted_keys.each do |key|
config.send("#{key}=", options[key])
end
end
+ def sorted_keys
+ options.keys.sort{|a,b| a.to_s <=> b.to_s}
+ end
+
def drb_argv
argv = []
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.