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

pulibrary / pdc_discovery / c7580205-413d-4b88-845a-14897a9e7b71

08 Jun 2026 08:43PM UTC coverage: 66.428% (-30.0%) from 96.475%
c7580205-413d-4b88-845a-14897a9e7b71

Pull #942

circleci

leefaisonr
Edit traject work state field
Co-authored-by: Carolyn Cole <carolyncole@users.noreply.github.com>
Pull Request #942: Create draft work index spec and test that DOI is indexed for draft work

27 of 27 new or added lines in 2 files covered. (100.0%)

1007 existing lines in 46 files now uncovered.

2224 of 3348 relevant lines covered (66.43%)

117.87 hits per line

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

33.33
/app/controllers/application_controller.rb
1
# frozen_string_literal: true
2

3
class ApplicationController < ActionController::Base
1✔
4
  # Adds a few additional behaviors into the application controller
5
  include Blacklight::Controller
1✔
6
  layout :determine_layout if respond_to? :layout
1✔
7
  rescue_from ActionView::MissingTemplate, with: :render_not_found
1✔
8

9
  def render_not_found
1✔
UNCOV
10
    error_view = if Rails.env.production? || Rails.env.staging?
×
11
                   '/discovery/errors/not_found'
×
12
                 else
UNCOV
13
                   '/errors/not_found'
×
14
                 end
15

UNCOV
16
    respond_to do |format|
×
UNCOV
17
      format.html { render error_view, status: :not_found }
×
UNCOV
18
      format.json { head :not_found }
×
UNCOV
19
      format.xml { head :not_found }
×
UNCOV
20
      format.rss { head :not_found }
×
UNCOV
21
      format.any do
×
UNCOV
22
        render "not_found", status: :not_found, formats: [:html]
×
23
      end
24
    end
25
  end
26
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

© 2026 Coveralls, Inc