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
|
it "should publish the group's categories to the client" do
|
||||||
group.update!(public_admission: true, categories: [category])
|
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].count).to eq(1)
|
||||||
expect(message.data[:categories].first[:id]).to eq(category.id)
|
expect(message.data[:categories].first[:id]).to eq(category.id)
|
||||||
|
|
Loading…
Reference in New Issue