aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorNihad Abbasov <nihad@42na.in>2017-11-04 00:38:44 +0400
committerNihad Abbasov <nihad@42na.in>2017-11-04 01:08:50 +0400
commit3812353845fa91bb500691aced10533730c07801 (patch)
tree7cefedc925c72d08e856ae5fbc1358a297f8eff3 /actionpack
parent9ec67362054e874ed905310a79b670941fa397af (diff)
downloadrails-3812353845fa91bb500691aced10533730c07801.tar.gz
rails-3812353845fa91bb500691aced10533730c07801.tar.bz2
rails-3812353845fa91bb500691aced10533730c07801.zip
Fix Capybara::Webkit::Driver#resize_window deprecation warning
>[DEPRECATION] Capybara::Webkit::Driver#resize_window is deprecated. Please use Capybara::Window#resize_to instead.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/system_testing/driver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/system_testing/driver.rb b/actionpack/lib/action_dispatch/system_testing/driver.rb
index 770fbde74e..7577d3e68a 100644
--- a/actionpack/lib/action_dispatch/system_testing/driver.rb
+++ b/actionpack/lib/action_dispatch/system_testing/driver.rb
@@ -59,7 +59,7 @@ module ActionDispatch
def register_webkit(app)
Capybara::Webkit::Driver.new(app, Capybara::Webkit::Configuration.to_hash.merge(@options)).tap do |driver|
- driver.resize_window(*@screen_size)
+ driver.resize_window_to(*@screen_size)
end
end