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:
parent
76e45ecb12
commit
28a6be456a
4 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
require 'active_support/test_case'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
def assert_not(assertion)
|
||||
assert !assertion
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'active_support/test_case'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
VALID_AUTHENTICATION_TOKEN = 'AbCdEfGhIjKlMnOpQrSt'.freeze
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
class ActionController::IntegrationTest
|
||||
require 'action_dispatch/testing/integration'
|
||||
|
||||
class ActionDispatch::IntegrationTest
|
||||
def warden
|
||||
request.env['warden']
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue