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

pulibrary / orangelight / 698115f7-df88-4b58-a806-fa77a93bfded

20 Jun 2025 12:18PM UTC coverage: 0.53% (+0.05%) from 0.478%
698115f7-df88-4b58-a806-fa77a93bfded

push

circleci

maxkadel
Print working directory

2 of 3 new or added lines in 1 file covered. (66.67%)

51 of 9615 relevant lines covered (0.53%)

0.01 hits per line

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

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