X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/efd50cd529990069dc1ca95f66ec6f61471fe29d..c04d05686f4014a1f729b7194913a0fe1b36e915:/test/integration/client_applications_test.rb?ds=sidebyside diff --git a/test/integration/client_applications_test.rb b/test/integration/client_applications_test.rb index b50a990c6..4c3e9df47 100644 --- a/test/integration/client_applications_test.rb +++ b/test/integration/client_applications_test.rb @@ -78,17 +78,13 @@ class ClientApplicationsTest < ActionDispatch::IntegrationTest ## # utility method to make the HTML screening easier to read. - def assert_in_heading - assert_select "div.content-heading" do - yield - end + def assert_in_heading(&block) + assert_select("div.content-heading", &block) end ## # utility method to make the HTML screening easier to read. - def assert_in_body - assert_select "div#content" do - yield - end + def assert_in_body(&block) + assert_select("div#content", &block) end end