A platform for community discussion. Free, open, simple.
DEV: Add missing reload in tag groups spec (#38265)
Isaac Janzenae20c31cb2f6
diff --git a/spec/requests/tag_groups_controller_spec.rb b/spec/requests/tag_groups_controller_spec.rbindex 2266f12f1e7..1533768c109 100644--- a/spec/requests/tag_groups_controller_spec.rb+++ b/spec/requests/tag_groups_controller_spec.rb@@ -299,7 +299,7 @@ RSpec.describe TagGroupsController do}expect(response.status).to eq(200)- expect(tag_group.tags.map(&:id)).to contain_exactly(tag2.id, tag3.id)+ expect(tag_group.reload.tags.map(&:id)).to contain_exactly(tag2.id, tag3.id)expect(UserHistory.last).to have_attributes(acting_user_id: admin.id,