• 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

53.33
/app/forms/suggest_correction_form.rb
1
# frozen_string_literal: true
2

3
class SuggestCorrectionForm
2✔
4
  include ActiveModel::Model
2✔
5
  include Honeypot
2✔
6

7
  attr_accessor :name, :email, :message, :context, :title
2✔
8

9
  validates :name, :email, :message, :context, presence: true
2✔
10
  validates :email, email: true
2✔
11

12
  def submit
2✔
UNCOV
13
    unless spam?
×
UNCOV
14
      RecordFeedbackFormSubmission.new(
×
15
        message:,
16
        patron_name: name,
17
        patron_email: email,
18
        title: "[Catalog] #{title}",
19
        context:,
20
        quid: Rails.application.config_for(:orangelight)[:suggest_correction_form][:queue_id]
21
      ).send_to_libanswers
22
    end
UNCOV
23
    @submitted = true
×
UNCOV
24
    @name = ""
×
UNCOV
25
    @email = ""
×
UNCOV
26
    @message = ""
×
27
  end
28

29
  def submitted?
2✔
UNCOV
30
    @submitted == true
×
31
  end
32
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