2007-04-04 17:39:56 +00:00
|
|
|
require 'rubygems'
|
|
|
|
require 'active_support'
|
2008-08-04 16:17:32 -04:00
|
|
|
require 'shoulda'
|
2008-08-31 22:21:19 -04:00
|
|
|
require 'shoulda/active_record'
|
|
|
|
require 'shoulda/controller'
|
|
|
|
require 'shoulda/action_mailer'
|
2008-08-04 16:17:32 -04:00
|
|
|
|
|
|
|
if defined?(RAILS_ROOT)
|
|
|
|
# load in the 3rd party macros from vendorized plugins and gems
|
2008-08-31 13:19:09 -04:00
|
|
|
Dir[File.join(RAILS_ROOT, "vendor", "{plugins,gems}", "*", "shoulda_macros", "*.rb")].each do |macro_file_path|
|
2008-08-04 16:17:32 -04:00
|
|
|
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
|