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
shoulda / test / rails_root / config / initializers / shoulda.rb
100644 9 lines (6 sloc) 0.281 kb
1
2
3
4
5
6
7
8
9
# This simulates loading the shoulda plugin, but without relying on
# vendor/plugins
 
shoulda_path = File.join(File.dirname(__FILE__), *%w(.. .. .. ..))
shoulda_lib_path = File.join(shoulda_path, "lib")
 
$LOAD_PATH.unshift(shoulda_lib_path)
load File.join(shoulda_path, "init.rb")