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

pulibrary / orangelight / 545c0261-9f84-450a-86ab-ece10285a886

18 Jun 2025 01:28PM UTC coverage: 0.478% (-0.01%) from 0.489%
545c0261-9f84-450a-86ab-ece10285a886

push

circleci

maxkadel
Check code

1 of 1 new or added line in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

46 of 9614 relevant lines covered (0.48%)

0.01 hits per line

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

79.17
/smoke_spec/smoke_spec.rb
1
# frozen_string_literal: true
2
require_relative 'smoke_spec_helper'
1✔
3

4
# rubocop:disable RSpec/DescribeClass
5
RSpec.describe 'Deployed environment', :staging_test do
1✔
6
  let(:host) { 'catalog-staging.princeton.edu' }
4✔
7
  let(:path) { nil }
3✔
8
  let(:query) { nil }
3✔
9
  let(:uri) { URI::HTTPS.build(host:, path:, query:) }
4✔
10

11
  it 'can connect to the staging environment' do
1✔
12
    response = HTTP.get(uri)
1✔
13
    expect(response.code).to eq(200)
1✔
UNCOV
14
    expect(response.status.reason).to eq('OK')
×
15
    
16
  end
17
  describe 'home page' do
1✔
18
    it 'has facets' do
1✔
19
      visit uri
1✔
20
      expect(page).to have_selector("#facet-access_facet")
1✔
21
      within("#facet-access_facet") do
×
22
        expect(page).to have_link("In the Library")
×
23
      end
24
    end
25
  end
26
  describe 'search' do
1✔
27
    let(:path) { '/catalog' }
2✔
28
    let(:query) { 'search_field=all_fields&q=potato' }
2✔
29
    it 'can be performed' do
1✔
30
      visit uri
1✔
31
      expect(page).to have_link('Edit search')
1✔
32
      expect(page).to have_content("You searched for:")
×
33
      expect(page).to have_content("Potato")
×
34
    end
35
  end
36
end
37
# rubocop:enable RSpec/DescribeClass
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