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

pulibrary / pdc_discovery / 690cdacb-3a8f-4cde-a7ee-3cf61aea4fb0

06 Sep 2023 06:32PM UTC coverage: 91.203% (-5.4%) from 96.597%
690cdacb-3a8f-4cde-a7ee-3cf61aea4fb0

push

circleci

bess
Override show action

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

2229 of 2444 relevant lines covered (91.2%)

178.27 hits per line

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

94.74
/spec/system/globus_item_metadata_spec.rb
1
# frozen_string_literal: true
2

3
describe 'Item page with Globus download integration', type: :system, js: true do
1✔
4
  let(:globus_fixtures) { File.read(File.join(fixture_path, 'globus_items.xml')) }
4✔
5
  let(:indexer) do
1✔
6
    DspaceIndexer.new(globus_fixtures)
3✔
7
  end
8

9
  before do
1✔
10
    Blacklight.default_index.connection.delete_by_query("*:*")
3✔
11
    Blacklight.default_index.connection.commit
3✔
12
    indexer.index
3✔
13
  end
14

15
  it "displays the Globus download button when the integration is present" do
1✔
16
    visit '/catalog/88163'
1✔
17
    expect(page).to have_content "Download from Globus"
1✔
18
  end
19

20
  it "does not display the Globus download button when the integration is not present" do
1✔
21
    visit '/catalog/6517'
1✔
22
    expect(page).not_to have_content "Download from Globus"
1✔
23
  end
24

25
  context "when there are no files in DataSpace" do
1✔
26
    it "displays the Globus button but not the file listing" do
1✔
27
      visit '/catalog/101010'
1✔
28
      expect(page).to have_content "Download from Globus"
1✔
29
      expect(page).not_to have_content "Showing 0 to 0 of 0 entries"
×
30
    end
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