X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/48214c6441725a61a8eae6c14d164362ff48b3a3..8ecb2c79f7146ecbb69d08cd38954836dc6d1b4c:/test/application_system_test_case.rb?ds=sidebyside diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index c2de02781..b170e74b1 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -21,4 +21,10 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase Settings.reload! super end + + private + + def within_sidebar(&block) + within "#sidebar_content", &block + end end