5365: updated signature for link_to_arvados_object_if_readable
[arvados.git] / apps / workbench / test / integration / errors_test.rb
index 8198be4fb395bc5ff2bca82be45893181c593992..32f16a68dfa9bb7da49f0adbce9881aa0480aeda 100644 (file)
@@ -103,6 +103,10 @@ class ErrorsTest < ActionDispatch::IntegrationTest
         assert_no_selector 'a,button:not([disabled])', text: 'Send problem report'
         assert_selector 'a,button', text: 'Cancel'
 
+        report = mock
+        report.expects(:deliver).returns true
+        IssueReporter.expects(:send_report).returns report
+
         # enter a report text and click on report
         find_field('report_issue_text').set 'my test report text'
         click_button 'Send problem report'