From 3edcab921a155e7f7e4c72a30d7d777171fbf67b Mon Sep 17 00:00:00 2001 From: Jeff Casimir Date: Sat, 27 Aug 2011 23:52:03 -0500 Subject: [PATCH] Simplifying loading in spec_helper thanks to new dependency style --- spec/spec_helper.rb | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4f92c1f..9a31208 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,25 +1,8 @@ require 'rubygems' -require 'bundler' - -require 'rspec' -begin - require 'cover_me' -rescue LoadError - # Silently fail -end -require './spec/samples/application_helper.rb' -Bundler.require -Dir.glob('./spec/samples/*') {|file| require file} -require 'active_support' -require 'action_view' require 'bundler/setup' - +Bundler.require require 'draper' - -Dir["spec/support/**/*.rb"].each do |file| - require "./" + file -end - -RSpec.configure do |config| - +require './spec/samples/application_helper.rb' +Dir.glob(['./spec/samples/*.rb', './spec/support/*.rb']) do |file| + require file end \ No newline at end of file