Skip to content

Instantly share code, notes, and snippets.

@akirasosa
Created September 10, 2013 04:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akirasosa/6505112 to your computer and use it in GitHub Desktop.
Save akirasosa/6505112 to your computer and use it in GitHub Desktop.
force poltergeist to use 'Accept-Language' as "en"
# spec/spec_helper.rb
RSpec.configure do |config|
config.before(:each) do
if Capybara.current_driver == :poltergeist
page.driver.headers = { 'Accept-Language' => "en" }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment