Replace unfailable assert() with a comment explaining what it means
authorTom Clegg <tom@curoverse.com>
Tue, 6 May 2014 16:37:29 +0000 (12:37 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 6 May 2014 16:37:29 +0000 (12:37 -0400)
for find() to raise an exception.

apps/workbench/test/integration/folders_test.rb

index a199808d1ec7fcf4c9d1f034954d9ffda3c6d363..b39cf24ae07d5258cddf264615e45e625be46991 100644 (file)
@@ -20,8 +20,8 @@ class FoldersTest < ActionDispatch::IntegrationTest
       page.assert_no_selector '.editable-submit'
     end
     visit current_path
-    assert(find('.panel', text: 'I just edited this.'),
-           "Description should stay updated after editing and refreshing page.")
+    # Raise exception if description update did not survive page refresh:
+    find '.panel', text: 'I just edited this.'
   end
 
   test 'Add a new name, then edit it, without creating a duplicate' do