Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove poltergeist and phantomjs leftovers #1970

Merged
merged 1 commit into from
Nov 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions lib/alchemy/test_support/integration_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ def authorize_user(user_or_role = nil)
else
user = build(:alchemy_dummy_user, user_or_role)
end
set_phantomjs_browser_language("en")
allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(user)
end

def set_phantomjs_browser_language(lang = nil)
if Capybara.current_driver == :poltergeist
page.driver.headers = {"Accept-Language" => lang}
end
end
end
end
end