mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
use the rails standard way of initializing a gem, instead of that RAILS_ROOT check
This commit is contained in:
parent
fedb8d1c5c
commit
162e6f8ad6
3 changed files with 2 additions and 2 deletions
2
init.rb
2
init.rb
|
@ -1 +1 @@
|
|||
require 'shoulda/rails'
|
||||
require File.join(File.dirname(__FILE__), 'rails', 'init')
|
||||
|
|
|
@ -3,7 +3,6 @@ require 'shoulda/proc_extensions'
|
|||
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
Normal file
1
rails/init.rb
Normal file
|
@ -0,0 +1 @@
|
|||
require 'shoulda/rails'
|
Loading…
Add table
Reference in a new issue