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

pulibrary / orangelight / d6b77a20-ed6e-49ad-b348-9ac4b0f07abd

30 Oct 2024 03:47PM UTC coverage: 96.807% (-0.01%) from 96.82%
d6b77a20-ed6e-49ad-b348-9ac4b0f07abd

push

circleci

maxkadel
Try to make Bookmark work on BL7 and BL8

Co-authored-by: Jane Sandberg <sandbergja@users.noreply.github.com>

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

6125 of 6327 relevant lines covered (96.81%)

1546.01 hits per line

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

85.71
/app/components/bookmark_button_component.rb
1
# frozen_string_literal: true
2

3
class BookmarkButtonComponent < Blacklight::Document::BookmarkComponent
3✔
4
  def initialize(**kwargs)
3✔
5
    if using_blacklight7?
103✔
6
      super(**kwargs.except(:action))
103✔
7
    else
NEW
8
      super
×
9
    end
10
  end
11

12
  def using_blacklight7?
3✔
13
    @using_blacklight7 ||= Gem.loaded_specs['blacklight'].version.to_s.start_with? '7'
103✔
14
  end
15
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