Skip to content

Can blacklight-marc tests be run independently of blacklight? #84

@josh-levinson

Description

@josh-levinson

I am having difficulty running the rspec tests for the gem. Using Ruby 2.5.3, bundle install works fine. I would like to get tests working because at Yale we made some modifications to how MARC fields are stored and then used with Endnote/Refworks in order to provide a more complete citation system, and would like to contribute it back to the community (if desired), but first we need to make sure we didn't break any tests.

This is what I'm getting:

bundle exec rspec
2019-10-30 09:54:49 WARN Selenium [DEPRECATION] Selenium::WebDriver::Chrome#driver_path= is deprecated. Use Selenium::WebDriver::Chrome::Service#driver_path= instead.

An error occurred while loading ./spec/controllers/catalog_controller_spec.rb.
Failure/Error: add_show_tools_partial(:librarian_view, if: :render_librarian_view_control?, define_method: false)

NoMethodError:
  undefined method `add_show_tools_partial' for CatalogController:Class
# ./lib/blacklight/marc/catalog.rb:6:in `block in <module:Catalog>'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/concern.rb:122:in `class_eval'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/concern.rb:122:in `append_features'
# ./.internal_test_app/app/controllers/catalog_controller.rb:5:in `include'
# ./.internal_test_app/app/controllers/catalog_controller.rb:5:in `<class:CatalogController>'
# ./.internal_test_app/app/controllers/catalog_controller.rb:2:in `<top (required)>'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in `block in require_or_load'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `block in load_interlock'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in `loading'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `load_interlock'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in `require_or_load'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in `block in require_or_load'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:in `require_or_load'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:510:in `load_missing_constant'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:60:in `block in load_missing_constant'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:59:in `load_missing_constant'
# /Users/joshualevinson/.rvm/gems/ruby-2.5.3/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:195:in `const_missing'
# ./spec/controllers/catalog_controller_spec.rb:4:in `<top (required)>'
/Users/joshualevinson/code/blacklight-marc/app/models/concerns/blacklight/solr/document/marc_export.rb:187: warning: key "SN" is duplicated and overwritten on line 188


Finished in 0.00028 seconds (files took 1.71 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions