Permalink
Browse files

use the rails standard way of initializing a gem, instead of that RAI…

…LS_ROOT check
  • Loading branch information...
1 parent fedb8d1 commit 162e6f8ad643e7c147a79eb5b3c6b549c2021720 @mjankowski mjankowski committed Oct 1, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 init.rb
  2. +0 −1 lib/shoulda.rb
  3. +1 −0 rails/init.rb
View
@@ -1 +1 @@
-require 'shoulda/rails'
+require File.join(File.dirname(__FILE__), 'rails', 'init')
View
@@ -3,7 +3,6 @@
require 'shoulda/assertions'
require 'shoulda/macros'
require 'shoulda/helpers'
-require 'shoulda/rails' if defined? RAILS_ROOT
module Test # :nodoc: all
module Unit
View
@@ -0,0 +1 @@
+require 'shoulda/rails'

0 comments on commit 162e6f8

Please sign in to comment.