From ee8796fc79d0204e438d5e3bce85ea1cfd2932e2 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sun, 20 Feb 2011 01:08:13 -0800 Subject: [PATCH] I should know better than to commit after midnight when I'm soloing. (Let's require the support files in the right order.) --- spec/spec_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 33067cfe4..56f7bc72a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,7 +20,10 @@ include HelperMethods # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} +fixture_builder_file = "#{File.dirname(__FILE__)}/support/fixture_builder.rb" +support_files = Dir["#{File.dirname(__FILE__)}/support/**/*.rb"] - [fixture_builder_file] +support_files.each {|f| require f } +require fixture_builder_file RSpec.configure do |config| config.mock_with :rspec