mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed AD assertion autoloads [#3470 state:resolved]
This commit is contained in:
parent
08f7c4dd89
commit
1004fcb767
1 changed files with 16 additions and 3 deletions
|
@ -1,8 +1,21 @@
|
|||
module ActionDispatch
|
||||
module Assertions
|
||||
%w(response selector tag dom routing model).each do |kind|
|
||||
require "action_dispatch/testing/assertions/#{kind}"
|
||||
include const_get("#{kind.camelize}Assertions")
|
||||
autoload :DomAssertions, 'action_dispatch/testing/assertions/dom'
|
||||
autoload :ModelAssertions, 'action_dispatch/testing/assertions/model'
|
||||
autoload :ResponseAssertions, 'action_dispatch/testing/assertions/response'
|
||||
autoload :RoutingAssertions, 'action_dispatch/testing/assertions/routing'
|
||||
autoload :SelectorAssertions, 'action_dispatch/testing/assertions/selector'
|
||||
autoload :TagAssertions, 'action_dispatch/testing/assertions/tag'
|
||||
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
include DomAssertions
|
||||
include ModelAssertions
|
||||
include ResponseAssertions
|
||||
include RoutingAssertions
|
||||
include SelectorAssertions
|
||||
include TagAssertions
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue