Created
June 8, 2010 23:41
-
-
Save agibralter/430807 to your computer and use it in GitHub Desktop.
a hack so facebooker doesn't cause cucumber steps to explode if using rack 1.1.0
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
ActionController::Integration::Session.class_eval do | |
def generic_url_rewriter | |
env = { | |
'REQUEST_METHOD' => "GET", | |
'QUERY_STRING' => "", | |
"REQUEST_URI" => "/", | |
"HTTP_HOST" => host, | |
"SERVER_PORT" => https? ? "443" : "80", | |
"HTTPS" => https? ? "on" : "off", | |
"rack.input" => "wtf" | |
} | |
ActionController::UrlRewriter.new(ActionController::Request.new(env), {}) | |
end | |
end |
Worked for me for the same bug. Thanks!
LEGEND!!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah. I had a bunch of "missing rack.input" errors. Some searching found your gist.