Permalink
Browse files

include #url_options method

include #url_options method from https://github.com/rails/rails/blob/v3.2.8/actionpack/lib/action_dispatch/testing/integration.rb#L494
because otherwise you have to specify a host foreach url you want to generate dynamically in an integration test
  • Loading branch information...
1 parent cd145de commit 48b862b9d6db401c356d65e65598c7f1b1df487d @vongruenigen committed Oct 1, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/minitest/rails/action_dispatch.rb
@@ -26,6 +26,11 @@ def self.app=(app)
def app
super || ::ActionDispatch::IntegrationTest.app
end
+
+ def url_options
+ reset! unless integration_session
+ integration_session.url_options
+ end
# Register by name
register_spec_type(/Acceptance ?Test\z/i, self)

0 comments on commit 48b862b

Please sign in to comment.