public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
shoulda / init.rb
100644 20 lines (17 sloc) 0.604 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'rubygems'
require 'active_support'
require 'shoulda'
require 'shoulda/active_record'
require 'shoulda/controller'
require 'shoulda/action_mailer'
require 'shoulda/rails_routing'
 
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