Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort list of files to require in spec helper.

While files are often returned in alphabetic order, this is not
guaranteed. Do it explicit now.
  • Loading branch information...
commit 2c68cd34be8b763e845912bdaa138e0b2a687545 1 parent 1fd61b1
@huerlisi huerlisi authored yabawock committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/spec_helper.rb
View
4 spec/spec_helper.rb
@@ -11,8 +11,8 @@
require File.expand_path(File.join(File.dirname(__FILE__), '../lib/formtastic/layout_helper'))
# Requires supporting files with custom matchers and macros, etc,
-# in ./support/ and its subdirectories.
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
+# in ./support/ and its subdirectories in alphabetic order.
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}
module FormtasticSpecHelper
include ActionPack
Please sign in to comment.
Something went wrong with that request. Please try again.