1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/testing
Piotr Sarnacki 6525002297 Include routes.mounted_helpers into integration tests
In integration tests, you might want to use helpers from engines that
you mounted in your application. It's not hard to add it by yourself,
but it's unneeded boilerplate. mounted_helpers are now included by
default. That means that given engine mounted like:

    mount Foo::Engine => "/foo", :as => "foo"

you will be able to use paths from this engine in tests this way:

    foo.root_path #=> "/foo"

(closes #6573)
2012-06-01 16:14:08 +02:00
..
assertions Correct order of expected and actual arguments 2012-05-20 19:07:04 +01:00
assertions.rb Restructure TemplateAssertions-related code to eliminate circular requires. 2011-05-22 23:13:44 -07:00
integration.rb Include routes.mounted_helpers into integration tests 2012-06-01 16:14:08 +02:00
performance_test.rb remove deprecated documentation 2011-03-28 00:32:00 +01:00
test_process.rb assigns(:foo) should not convert @foo's keys to strings if it happens to be a hash 2012-02-18 23:41:07 +13:00
test_request.rb Fix bug when Rails.application is defined but is nil. See #881 2012-05-21 15:24:18 -04:00
test_response.rb Don't duplicate Rack::Response functionality. [#5320 state:resolved] 2010-09-25 10:58:07 +02:00