Skip to content

Commit

Permalink
remove unneeded helper and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Cain committed Aug 8, 2023
1 parent a5d2441 commit 5036ec3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 252 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Blacklight
class DocumentMetadataRestrictedComponent < Blacklight::Component
def initialize(document: )
def initialize(document:)
super
@document = document
end
Expand Down
250 changes: 0 additions & 250 deletions app/helpers/geoblacklight_helper.rb

This file was deleted.

1 change: 1 addition & 0 deletions lib/nyugeoblacklight/multi_direct_downloads.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module NyuGeoblacklight
# MultiDirectDownloads is a (NYU-specific) geoblacklight-schema parser for multi-direct-downloads field
class MultiDirectDownloads
attr_reader :downloads

def initialize(document, multi_downloads_field = Settings.FIELDS.MULTI_DOWNLOADS)
@document = document
@multi_downloads_field = multi_downloads_field
Expand Down
2 changes: 1 addition & 1 deletion spec/components/curated_maps/curated_map_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
RSpec.describe CuratedMaps::CuratedMapComponent, type: :component do
let(:map) { ::NyuGeoblacklight::CuratedCollections.maps.first }

it 'renders the map' do
it 'renders the map' do
render_inline(described_class.new(map:))

expect(page).to have_css('a.curated-card')
Expand Down

0 comments on commit 5036ec3

Please sign in to comment.