]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/client_applications_test.rb
Fix call to UserMailer in message delivery
[rails.git] / test / integration / client_applications_test.rb
index b50a990c688a1b5e54960682fa1a9ad7a2c94444..4c3e9df470197c1a50b2550c1d0645f3f06d519d 100644 (file)
@@ -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