spec/models/mail_service_spec.rb [114:123]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        should_email(commit.git_author_email)
        should_email("jeroen@example.com")
        mail.execute(build) if mail.can_execute?(build)
      end

      def should_email(email)
        expect(Notify).not_to receive(:build_success_email).with(build.id, email)
        expect(Notify).not_to receive(:build_fail_email).with(build.id, email)
      end
    end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/models/mail_service_spec.rb [161:170]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        should_email(commit.git_author_email)
        should_email("jeroen@example.com")
        mail.execute(build) if mail.can_execute?(build)
      end

      def should_email(email)
        expect(Notify).not_to receive(:build_success_email).with(build.id, email)
        expect(Notify).not_to receive(:build_fail_email).with(build.id, email)
      end
    end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



