public
Rubygem
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/thoughtbot/shoulda.git
Moved logic of init.rb into shoulda/rails

 * will allow for later gem usage in rails
Ryan McGeary (author)
Sun Sep 14 05:28:53 -0700 2008
commit  47f8f581431d8f42dd31fe26de2bb31d6551a584
tree    f0f841d412328bb26ebcca1bfa41af55162c529e
parent  d20c85e112e3a25dd8792ae85932631878770a9c
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
0
@@ -1,19 +1 @@
0
-require 'rubygems'
0
-require 'active_support'
0
-require 'shoulda'
0
-
0
-require 'shoulda/active_record' if defined? ActiveRecord::Base
0
-require 'shoulda/controller'    if defined? ActionController::Base
0
-require 'shoulda/action_mailer' if defined? ActionMailer::Base
0
-
0
-if defined?(RAILS_ROOT)
0
-  # load in the 3rd party macros from vendorized plugins and gems
0
-  Dir[File.join(RAILS_ROOT, "vendor", "{plugins,gems}", "*", "shoulda_macros", "*.rb")].each do |macro_file_path|
0
-    require macro_file_path
0
-  end
0
-
0
-  # load in the local application specific macros
0
-  Dir[File.join(RAILS_ROOT, "test", "shoulda_macros", "*.rb")].each do |macro_file_path|
0
-    require macro_file_path
0
-  end
0
-end
0
+require 'shoulda/rails'

Comments