• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / orangelight / 30e4e757-8565-4a15-a8db-bfa223eb1b0f

10 Nov 2025 06:33PM UTC coverage: 95.247% (-0.2%) from 95.41%
30e4e757-8565-4a15-a8db-bfa223eb1b0f

Pull #5339

circleci

christinach
when annex no item service is used the patron should
receive a confirmation email
with the annex confirmation subject

related to [#4183]
Pull Request #5339: Annex requests with no items should email forranx@princeton.edu

50 of 63 new or added lines in 8 files covered. (79.37%)

1 existing line in 1 file now uncovered.

6232 of 6543 relevant lines covered (95.25%)

1448.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.67
/app/models/requests/service_eligibility/annex/abstract_annex.rb
1
# frozen_string_literal: true
2
module Requests
3✔
3
  module ServiceEligibility
3✔
4
    module Annex
3✔
5
      # Abstract class for other annex classes to inherit from
6
      class AbstractAnnex
3✔
7
        def initialize(requestable:, patron:)
3✔
8
          @requestable = requestable
4,567✔
9
          @patron = patron
4,567✔
10
        end
11

12
        def to_s
3✔
NEW
13
          raise "Please implement to_s in the subclass"
×
14
        end
15

16
        protected
3✔
17

18
          def requestable_eligible?
3✔
NEW
19
            raise "Please implement requestable_eligible? in the subclass"
×
20
          end
21

22
          def patron_eligible?
3✔
23
            patron.core_patron_group? || patron.affiliate_patron_group?
154✔
24
          end
25

26
          attr_reader :requestable, :patron
3✔
27
      end
28
    end
29
  end
30
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc