Skip to content

Commit 940f540

Browse files
author
LaRita Robinson
committed
Rubocop fixes
1 parent 7b21376 commit 940f540

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/controllers/catalog_controller_decorator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def self.uploaded_field
5151

5252
config.index_fields.delete(key)
5353
end
54-
config.add_index_field 'based_near_label_tesim', itemprop: 'contentLocation', link_to_facet: 'based_near_label_sim'
54+
config.add_index_field 'based_near_label_tesim', itemprop: 'contentLocation', link_to_facet: 'based_near_label_sim'
5555
config.add_index_field solr_name("title", :stored_searchable), label: "Title", itemprop: 'name', if: false
5656
config.add_index_field solr_name("creator", :stored_searchable), itemprop: 'creator', link_to_search: solr_name("creator", :facetable)
5757
config.add_index_field solr_name("date", :stored_searchable), itemprop: 'date'

app/helpers/hyku_knapsack/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def self.cross_tenant_search_host
3939
# I'm providing quite a few fallbacks, as this URL is used on the first page you'll see in a
4040
# new Hyku instance.
4141
ENV["HYKU_CROSS_TENANT_SEARCH_HOST"].presence ||
42-
Account.where(search_only: true).limit(1).pluck(:cname)&.first ||
42+
Account.where(search_only: true).limit(1).pick(:cname) ||
4343
"search.hykucommons.org"
4444
end
4545
end

spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
RSpec.configure do |config|
3737
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
38-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
38+
config.fixture_path = Rails.root.join("spec", "fixtures").to_s
3939

4040
# They enable url_helpers not to throw error in Rspec system spec and request spec.
4141
# config.include Rails.application.routes.url_helpers

0 commit comments

Comments
 (0)