1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/init.rb

18 lines
572 B
Ruby

require 'rubygems'
require 'active_support'
require 'shoulda'
require 'shoulda/active_record'
require 'shoulda/controller'
require 'shoulda/action_mailer'
if defined?(RAILS_ROOT)
# load in the 3rd party macros from vendorized plugins and gems
Dir[File.join(RAILS_ROOT, "vendor", "{plugins,gems}", "*", "shoulda_macros", "*.rb")].each do |macro_file_path|
require macro_file_path
end
# load in the local application specific macros
Dir[File.join(RAILS_ROOT, "test", "shoulda_macros", "*.rb")].each do |macro_file_path|
require macro_file_path
end
end