mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
Fix brittle spec.
This commit is contained in:
parent
3a6e137e70
commit
086cb0f849
@ -685,7 +685,7 @@ describe Group do
|
||||
it "should publish the group's categories to the client" do
|
||||
group.update!(public_admission: true, categories: [category])
|
||||
|
||||
message = MessageBus.track_publish { group.add(user) }.first
|
||||
message = MessageBus.track_publish("/categories") { group.add(user) }.first
|
||||
|
||||
expect(message.data[:categories].count).to eq(1)
|
||||
expect(message.data[:categories].first[:id]).to eq(category.id)
|
||||
|
Loading…
Reference in New Issue
Block a user