Permalink
Browse files

sort option keys to ensure libs precedes requires

  • Loading branch information...
1 parent fa42f5b commit f988c5e82480057f3e50ac0a2979cc804453b237 @dchelimsky dchelimsky committed Jun 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/core/configuration_options.rb
@@ -15,8 +15,8 @@ def initialize(args)
end
def configure(config)
- options.each do |key, value|
- config.send("#{key}=", value)
+ options.keys.sort{|a,b| a.to_s <=> b.to_s}.each do |key|
+ config.send("#{key}=", options[key])
end
end

0 comments on commit f988c5e

Please sign in to comment.