discourse/spec
Alan Guo Xiang Tan 9d658591d6
DEV: Fix nil exception when reporting rspec failures ()
Follow-up to f5ca96528d

Why this change?

`RSpec.current_example.metadata[:extra_failure_lines]` can be `nil` and
calling `<<` on `nil` is not a good idea.

What does this change do?

Set `RSpec.current_example.metadata[:extra_failure_lines]` to `""` as
long as there are exceptions.
2023-12-22 13:41:45 +08:00
..
fabricators DEV: Fix various rubocop lints () 2023-12-06 23:25:00 +01:00
fixtures DEV: Fix various spec linting issues () 2023-12-04 13:45:19 +01:00
generator DEV: Custom generator for move setting from tl to groups () 2023-12-19 10:52:28 +11:00
helpers DEV: Use Discourse::SYSTEM_USER_ID in fixtures/009_users () 2023-12-07 09:04:45 +10:00
import_export DEV: Allow fab! without block () 2023-11-09 16:47:59 -06:00
initializers DEV: Allow fab! without block () 2023-11-09 16:47:59 -06:00
integration DEV: Convert min_trust_to_flag_posts setting to groups () 2023-12-13 17:18:42 +08:00
integrity Enable Embroider/Webpack code spliting for Wizard () 2023-12-20 13:15:06 +00:00
jobs DEV: Convert min_trust_to_flag_posts setting to groups () 2023-12-13 17:18:42 +08:00
lib FIX: correct typo minmin_trust_to_edit_wiki_post () 2023-12-22 08:39:42 +11:00
mailers DEV: Convert min_trust_level_to_allow_invite to groups () 2023-12-18 12:07:36 +08:00
migrations DEV: Switch over category settings to new table - Part 3 () 2023-09-12 09:51:49 +08:00
models FIX: Better infinite scrolling on categories page () 2023-12-18 16:46:09 +02:00
multisite DEV: Add S3 upload system specs using minio () 2023-08-23 11:18:33 +10:00
requests FIX: correct typo minmin_trust_to_edit_wiki_post () 2023-12-22 08:39:42 +11:00
script/import_scripts DEV: Allow fab! without block () 2023-11-09 16:47:59 -06:00
serializers DEV: Convert min_trust_to_flag_posts setting to groups () 2023-12-13 17:18:42 +08:00
services DEV: Convert min_trust_level_to_allow_user_card_background to groups () 2023-12-14 10:57:58 +08:00
support DEV: Remove the use of Capybara::Session#quit () 2023-12-20 13:20:14 +08:00
system FIX: Show admin plugin route sub-links in sidebar () 2023-12-21 11:37:20 +10:00
tasks DEV: Add file_size_restriction site setting type () 2023-12-13 16:22:48 -07:00
views FIX: Use subfolder-safe url for category in html view () 2023-11-28 19:08:14 +08:00
rails_helper.rb DEV: Fix nil exception when reporting rspec failures () 2023-12-22 13:41:45 +08:00
regenerate_swagger_docs DEV: Add API docs for uploads and API doc watcher () 2021-12-23 08:40:15 +10:00
swagger_helper.rb DEV: Bump rswag-specs from 2.11.0 to 2.13.0 () 2023-12-07 08:16:47 +08:00