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

pulibrary / orangelight / 4e01fe00-694b-47b4-8b30-2de4dc4acc66

31 Jul 2025 07:56PM UTC coverage: 92.891% (-2.5%) from 95.4%
4e01fe00-694b-47b4-8b30-2de4dc4acc66

Pull #4962

circleci

web-flow
Merge pull request #5130 from pulibrary/clean_up_scss_comments

Remove SCSS commented code.
Pull Request #4962: Orangelight pos workcycle 07-07-2025

193 of 197 new or added lines in 24 files covered. (97.97%)

161 existing lines in 35 files now uncovered.

5932 of 6386 relevant lines covered (92.89%)

1443.08 hits per line

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

94.74
/app/forms/report_biased_results_form.rb
1
# frozen_string_literal: true
2
class ReportBiasedResultsForm
2✔
3
  include ActiveModel::Model
2✔
4
  include Honeypot
2✔
5
  attr_accessor :name, :email, :message, :context
2✔
6

7
  validates :message, presence: true
2✔
8

9
  def email_subject
2✔
10
    "[Possible Biased Results]"
2✔
11
  end
12

13
  def submit
2✔
14
    ContactMailer.with(form: self).biased_results.deliver unless spam?
1✔
15
    @submitted = true
1✔
16
    @name = ""
1✔
17
    @email = ""
1✔
18
    @message = ""
1✔
19
  end
20

21
  def submitted?
2✔
UNCOV
22
    @submitted == true
×
23
  end
24

25
  def routed_mail_to
2✔
26
    Orangelight.config["report_biased_results_form"]["to"]
1✔
27
  end
28

29
  # If the form does not include an email, use the routed_mail_to email for the "from" field
30
  def from_email
2✔
31
    @from_email ||= @email.presence || routed_mail_to
1✔
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