0
此代碼出現在我的兩個規格的:如何避免測試重複?
it 'does not add the reply' do
expect { subject }.not_to change { replies.length }
end
it 'does not publish the event' do
expect { subject }.not_to publish_event(:reply_event)
end
我應該怎麼寫我的規格,以避免這種重複?