discourse/plugins/chat/spec
Andrei Prigorshnev e7292e1682
DEV: more tests for mentions when updating chat messages (#21185)
This adds these two new test cases:

    context "when updating a mentioned user" do
      it "updates the mention record" do

    # and
    context "when there are duplicate mentions" do
        it "creates a single mention record per mention" do

Apart from that, this groups mention related tests into a context, renames one test, and moves setup of another test into the test case itself from the before block (to make it more clear, that test is the only one that uses that setup). See the PR's commit history.
2023-04-21 16:58:01 +04:00
..
components/chat DEV: more tests for mentions when updating chat messages (#21185) 2023-04-21 16:58:01 +04:00
fabricators DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
integration Revert "FEATURE: Better thread reply counter cache (#21108)" (#21192) 2023-04-20 15:09:47 -05:00
jobs Revert "FEATURE: Better thread reply counter cache (#21108)" (#21192) 2023-04-20 15:09:47 -05:00
lib Revert "FEATURE: Better thread reply counter cache (#21108)" (#21192) 2023-04-20 15:09:47 -05:00
mailers DEV: Skip channel-wide mention chat specs (#20770) 2023-03-22 12:44:01 +10:00
models Revert "FEATURE: Better thread reply counter cache (#21108)" (#21192) 2023-04-20 15:09:47 -05:00
queries/chat FIX: Do not count thread messages for channel unreads (#21126) 2023-04-19 08:53:51 +10:00
requests Revert "FEATURE: Better thread reply counter cache (#21108)" (#21192) 2023-04-20 15:09:47 -05:00
serializer FIX: Do not serialize thread data if threading disabled (#21107) 2023-04-17 14:29:06 +10:00
services Revert "FEATURE: Better thread reply counter cache (#21108)" (#21192) 2023-04-20 15:09:47 -05:00
support DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
system FIX: Chat composer shortcuts should respect context (#21130) 2023-04-19 09:07:52 +10:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: Reacting to MessageBus in chat thread panel (#21070) 2023-04-13 14:45:50 +02:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00