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:
parent
59515f5194
commit
3edcab921a
1 changed files with 4 additions and 21 deletions
|
@ -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
|
Loading…
Reference in a new issue