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

pulibrary / orangelight / e42c69dd-50c7-45c1-87e9-9b38ec3c0d1c

12 Nov 2025 08:00PM UTC coverage: 95.153% (-0.04%) from 95.188%
e42c69dd-50c7-45c1-87e9-9b38ec3c0d1c

Pull #5343

circleci

Ryan Laddusaw
Fix user group spec
Pull Request #5343: Add tests for each user group

44 of 46 new or added lines in 10 files covered. (95.65%)

6203 of 6519 relevant lines covered (95.15%)

1445.19 hits per line

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

87.5
/app/models/requests/service_eligibility/aeon.rb
1
# frozen_string_literal: true
2
module Requests
3✔
3
  module ServiceEligibility
3✔
4
    # This class is responsible for determining if a specific
5
    # resource can be requested via Aeon
6
    class Aeon
3✔
7
      def initialize(requestable:, patron:)
3✔
8
        @requestable = requestable
2,316✔
9
        @patron = patron
2,316✔
10
      end
11

12
      def to_s
3✔
13
        'aeon'
166✔
14
      end
15

16
      def eligible?
3✔
17
        requestable.aeon? || !(requestable.alma_managed? || requestable.partner_holding?)
2,316✔
18
      end
19

20
      def patron_group_eligible?
3✔
NEW
21
        allowed_patron_groups.include?(patron.patron_group)
×
22
      end
23

24
      def allowed_patron_groups
3✔
NEW
25
        @allowed_patron_groups ||= %w[P REG GRAD SENR UGRD SUM]
×
26
      end
27

28
    private
3✔
29

30
      attr_reader :requestable, :patron
3✔
31
    end
32
  end
33
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