1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Simplifying loading in spec_helper thanks to new dependency style

This commit is contained in:
Jeff Casimir 2011-08-27 23:52:03 -05:00
parent 59515f5194
commit 3edcab921a

View file

@ -1,25 +1,8 @@
require 'rubygems' 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' require 'bundler/setup'
Bundler.require
require 'draper' require 'draper'
require './spec/samples/application_helper.rb'
Dir["spec/support/**/*.rb"].each do |file| Dir.glob(['./spec/samples/*.rb', './spec/support/*.rb']) do |file|
require "./" + file require file
end
RSpec.configure do |config|
end end