-
-
Save lmarburger/34751 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActionView::TestCase | |
class TestController < ActionController::Base | |
attr_accessor :params | |
# Save the current initialize method to call in the new initialize method below. | |
alias_method :base_initialize, :initialize | |
def initialize | |
base_initialize | |
#Hack Hack Hack: TestCase doesn't have context of a current url so cheat a bit | |
@params = {} | |
send(:initialize_current_url) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment