require'spec_helper'describeEmailsOnPushServicedodescribe'Validations'docontext'when service is active'dobefore{subject.active=true}it{is_expected.tovalidate_presence_of(:recipients)}endcontext'when service is inactive'dobefore{subject.active=false}it{is_expected.not_tovalidate_presence_of(:recipients)}endendend