Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…LS_ROOT check
  • Loading branch information...
commit 162e6f8ad643e7c147a79eb5b3c6b549c2021720 1 parent fedb8d1
Matt Jankowski mjankowski authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  init.rb
  2. +0 −1  lib/shoulda.rb
  3. +1 −0  rails/init.rb
2  init.rb
View
@@ -1 +1 @@
-require 'shoulda/rails'
+require File.join(File.dirname(__FILE__), 'rails', 'init')
1  lib/shoulda.rb
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
1  rails/init.rb
View
@@ -0,0 +1 @@
+require 'shoulda/rails'
Please sign in to comment.
Something went wrong with that request. Please try again.