A platform for community discussion. Free, open, simple.
DEV: Fix a d-assign spec (#33825)
Jarek Radosz1ef8ae4f7dea
diff --git a/plugins/discourse-assign/spec/system/assign_topic_spec.rb b/plugins/discourse-assign/spec/system/assign_topic_spec.rbindex d3c5c37b81f..5e62b4968ac 100644--- a/plugins/discourse-assign/spec/system/assign_topic_spec.rb+++ b/plugins/discourse-assign/spec/system/assign_topic_spec.rb@@ -69,13 +69,13 @@ describe "Assign | Assigning topics", type: :system doit "show the user's username if there is no name" dovisit "/t/#{topic.id}"staff_user.name = nil- staff_user.save+ staff_user.save!staff_user.reloadtopic_page.click_assign_topicassign_modal.assignee = staff_userassign_modal.confirm- expect(find("#topic .assigned-to")).to have_content(staff_user.name)+ expect(find("#topic .assigned-to")).to have_content(staff_user.username)endend