diff --git a/Gemfile.lock b/Gemfile.lock index ff3f26cdfd8..a4cb054026b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -254,7 +254,7 @@ GEM ffi (~> 1.9) minio_runner (0.1.2) minitest (5.25.4) - mocha (2.6.1) + mocha (2.7.1) ruby2_keywords (>= 0.0.5) msgpack (1.7.5) multi_json (1.15.0) diff --git a/plugins/chat/spec/serializer/chat/channel_serializer_spec.rb b/plugins/chat/spec/serializer/chat/channel_serializer_spec.rb index f995c5f8066..dd0ca6c775f 100644 --- a/plugins/chat/spec/serializer/chat/channel_serializer_spec.rb +++ b/plugins/chat/spec/serializer/chat/channel_serializer_spec.rb @@ -108,7 +108,10 @@ describe Chat::ChannelSerializer do it "does not get the kick_message_bus_last_id" do MessageBus.expects(:last_id).at_least_once - MessageBus.expects(:last_id).never + MessageBus + .expects(:last_id) + .with(Chat::Publisher.kick_users_message_bus_channel(chat_channel.id)) + .never expect(serializer.as_json[:meta][:message_bus_last_ids].key?(:kick)).to eq(false) end end