1
0
Fork 0
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:
Joshua Peek 2009-11-09 21:37:37 -06:00
parent 08f7c4dd89
commit 1004fcb767

View file

@ -1,8 +1,21 @@
module ActionDispatch module ActionDispatch
module Assertions module Assertions
%w(response selector tag dom routing model).each do |kind| autoload :DomAssertions, 'action_dispatch/testing/assertions/dom'
require "action_dispatch/testing/assertions/#{kind}" autoload :ModelAssertions, 'action_dispatch/testing/assertions/model'
include const_get("#{kind.camelize}Assertions") 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 end
end end