Jarek Radosz
2a5be90447
DEV: Fix a flaky spec (#13234)
The error being:
```
1) Post#publish_changes_to_client! send message to all users participating in private conversation
Failure/Error: MessageBus.publish(channel, message, opts)
Mocha::ExpectationError:
unexpected invocation: MessageBus.publish("/topic/93", {:id => 109, :post_number => 1, :updated_at => 2021-06-01 14:53:54.508794217 +0000 (1622559234.508794 secs), :user_id => 175, :last_editor_id => 175, :type => :created, :version => 1}, {:user_ids => [174, 172, 173]})
unsatisfied expectations:
- expected exactly once, invoked never: MessageBus.publish("/topic/93", {:id => 109, :post_number => 1, :updated_at => 2021-06-01 14:53:54.508794217 +0000 (1622559234.508794 secs), :user_id => 175, :last_editor_id => 175, :type => :created, :version => 1}, {:user_ids => [172, 174, 173]})
satisfied expectations:
- allowed any number of times, invoked never: Oneboxer.onebox(any_parameters)
- allowed any number of times, invoked never: DateTime.now(any_parameters)
- allowed any number of times, invoked 6 times: Time.now(any_parameters)
- allowed any number of times, invoked never: Date.today(any_parameters)
- allowed any number of times, invoked never: TrackTimeStub.stubbed(any_parameters)
# ./app/models/post.rb:229:in `publish_message!'
# ./app/models/post.rb:208:in `publish_change_to_clients!'
# ./spec/models/post_spec.rb:1740:in `block (3 levels) in <main>'
# ./spec/rails_helper.rb:279:in `block (2 levels) in <top (required)>'
# ./bundle/ruby/2.7.0/gems/webmock-3.13.0/lib/webmock/rspec.rb:37:in `block (2 levels) in <top (required)>'
```
2021-06-01 20:30:47 +02:00
..
2021-05-21 11:43:47 +10:00
2021-05-21 11:43:47 +10:00
2020-10-19 10:40:55 +01:00
2020-05-18 17:27:37 +08:00
2021-05-28 00:30:57 +05:30
2021-04-09 13:06:35 +10:00
2021-05-21 11:43:47 +10:00
2021-05-19 16:04:35 +04:00
2021-05-14 09:45:14 +10:00
2020-10-15 14:05:48 -04:00
2021-03-11 10:38:34 +00:00
2020-12-18 09:03:51 -06:00
2020-05-15 10:40:36 +08:00
2020-09-29 22:29:03 +05:30
2021-05-21 11:43:47 +10:00
2020-07-27 10:23:54 +10:00
2020-12-23 13:14:19 +11:00
2021-06-01 10:34:41 +02:00
2021-05-14 09:45:14 +10:00
2021-04-14 12:15:56 +03:00
2021-04-15 14:46:32 +03:00
2021-01-20 21:32:22 +01:00
2021-05-21 11:43:47 +10:00
2020-09-28 12:02:25 +01:00
2020-06-18 11:32:14 +03:00
2021-05-21 11:43:47 +10:00
2021-04-14 10:27:07 +03:00
2021-05-28 17:33:10 +04:00
2021-06-01 20:30:47 +02:00
2021-02-23 11:36:00 -03:00
2020-04-08 12:52:36 -04:00
2020-03-10 22:13:17 +01:00
2021-04-12 15:02:58 +03:00
2021-05-21 11:43:47 +10:00
2021-05-10 14:09:04 -03:00
2021-04-21 08:41:36 -03:00
2021-05-26 15:43:18 -03:00
2021-05-10 14:09:04 -03:00
2021-05-26 09:47:35 +10:00
2021-05-21 11:43:47 +10:00
2020-04-24 14:09:51 +10:00
2020-07-27 10:23:54 +10:00
2021-05-21 11:43:47 +10:00
2021-01-07 11:15:38 -05:00
2020-03-13 12:25:58 -04:00
2020-12-02 12:36:41 +05:30
2021-05-14 09:45:14 +10:00
2021-04-12 15:02:58 +03:00
2020-03-12 16:35:28 +00:00
2021-04-28 23:12:08 +03:00
2020-04-03 16:42:01 +01:00
2021-04-30 11:10:19 +02:00
2020-09-28 12:02:25 +01:00
2021-06-01 14:02:53 -04:00
2021-03-24 19:54:29 +05:30
2021-02-02 10:50:04 +01:00
2021-05-21 11:43:47 +10:00
2020-10-27 12:39:52 +11:00
2021-02-18 11:52:30 +10:00
2021-03-10 21:13:15 -05:00
2021-04-14 19:30:51 +03:00
2021-03-24 15:58:24 -04:00
2020-04-17 17:24:14 +01:00
2021-05-27 17:42:25 +02:00
2021-05-20 16:58:27 +10:00
2020-10-19 10:40:55 +01:00
2020-03-10 22:13:17 +01:00
2020-04-08 07:35:42 +10:00
2021-01-19 08:53:49 +10:00
2020-07-16 18:21:30 +05:30
2021-04-21 12:36:32 +03:00
2020-08-14 19:10:56 +05:30
2020-09-10 12:59:51 -03:00
2021-01-25 21:27:15 +01:00
2021-06-01 14:38:55 +02:00
2020-09-09 14:05:41 +08:00
2021-04-15 11:05:03 +01:00
2021-05-21 11:43:47 +10:00
2020-03-10 22:13:17 +01:00
2021-05-24 09:10:22 +10:00