0
Dieser Code erscheint in zwei meiner Spezifikationen:Wie vermeide ich Testduplizierung?
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
Wie soll ich meine spec schreibe diese Doppelarbeit zu vermeiden?