Created
April 21, 2011 15:59
-
-
Save abstractj/934840 to your computer and use it in GitHub Desktop.
i18n_fix
This file contains hidden or 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
module RackHeader | |
def set_headers(headers) | |
driver = Capybara.current_session.driver.browser | |
def driver.env | |
@env.merge(super) | |
end | |
def driver.env=(env) | |
@env = env | |
end | |
driver.env = headers | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment