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

pulibrary / pdc_discovery / d736ff91-d543-4530-a84d-5d91200b6783

03 Nov 2023 05:30PM UTC coverage: 93.662% (-3.3%) from 96.965%
d736ff91-d543-4530-a84d-5d91200b6783

push

circleci

jrgriffiniii
wip

10 of 11 new or added lines in 1 file covered. (90.91%)

91 existing lines in 15 files now uncovered.

2601 of 2777 relevant lines covered (93.66%)

178.74 hits per line

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

86.67
/spec/requests/errors_spec.rb
1
# frozen_string_literal: true
2
require 'rails_helper'
1✔
3

4
RSpec.describe "Errors", type: :request do
1✔
5
  describe "GET /not_found" do
1✔
6
    it "returns http success" do
1✔
7
      get "/errors/not_found"
1✔
UNCOV
8
      expect(response).to have_http_status(:not_found)
×
9
    end
10
  end
11

12
  describe "GET /internal_server_error" do
1✔
13
    it "returns http success" do
1✔
14
      get "/errors/internal_server_error"
1✔
UNCOV
15
      expect(response).to have_http_status(:internal_server_error)
×
16
    end
17
  end
18

19
  describe "GET /not_found.json" do
1✔
20
    it "returns a 404 response code with an empty body" do
1✔
21
      get "/errors/not_found.json"
1✔
22
      expect(response).to have_http_status(:not_found)
1✔
23
      expect(response.body).to be_empty
1✔
24
    end
25
  end
26

27
  describe "GET /not_found.rss" do
1✔
28
    it "returns a 404 response code with an empty body" do
1✔
29
      get "/errors/not_found.rss"
1✔
30
      expect(response).to have_http_status(:not_found)
1✔
31
      expect(response.body).to be_empty
1✔
32
    end
33
  end
34

35
  describe "GET /not_found.xml" do
1✔
36
    it "returns a 404 response code with an empty body" do
1✔
37
      get "/errors/not_found.xml"
1✔
38
      expect(response).to have_http_status(:not_found)
1✔
39
      expect(response.body).to be_empty
1✔
40
    end
41
  end
42

43
  describe "GET /not_found.svg" do
1✔
44
    it "returns a 404 response code with an html page" do
1✔
45
      get "/errors/not_found.svg"
1✔
UNCOV
46
      expect(response).to have_http_status(:not_found)
×
UNCOV
47
      expect(response.body).not_to be_empty
×
48
    end
49
  end
50
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