1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Require files before monkey patching them.

This commit is contained in:
José Valim 2010-03-23 16:28:17 +01:00
parent 76e45ecb12
commit 28a6be456a
4 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,5 @@
require 'active_support/test_case'
class ActiveSupport::TestCase
def assert_not(assertion)
assert !assertion

View file

@ -1,3 +1,5 @@
require 'active_support/test_case'
class ActiveSupport::TestCase
VALID_AUTHENTICATION_TOKEN = 'AbCdEfGhIjKlMnOpQrSt'.freeze

View file

@ -1,5 +1,6 @@
class ActionController::IntegrationTest
require 'action_dispatch/testing/integration'
class ActionDispatch::IntegrationTest
def warden
request.env['warden']
end

View file

@ -1,4 +1,5 @@
require 'webrat/core/elements/field'
require 'action_dispatch/testing/integration'
module Webrat
Field.class_eval do
@ -8,7 +9,7 @@ module Webrat
end
end
module ActionController #:nodoc:
module ActionDispatch #:nodoc:
IntegrationTest.class_eval do
include Webrat::Methods
include Webrat::Matchers