Skip to content

Commit

Permalink
Appease the cops
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Dec 20, 2023
1 parent 0dbddad commit 01c8643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ gem 'puma', '~> 5.6' # Use Puma as the app server
gem 'rack-test', '0.7.0', group: %i[test] # rack-test >= 0.71 does not work with older Capybara versions (< 2.17). See #214 for more details
gem 'rails-controller-testing', group: %i[test]
gem 'rdf', '~> 3.2'
gem 'redlock', '>= 0.1.2', '< 2.0' # lock redlock per https://github.com/samvera/hyrax/pull/5961
gem 'redis-namespace', '~> 1.10' # Hyrax v5 relies on 1.5; but we'd like to have the #clear method so we need 1.10 or greater.
gem 'redlock', '>= 0.1.2', '< 2.0' # lock redlock per https://github.com/samvera/hyrax/pull/5961
gem 'riiif', '~> 2.0'
gem 'rolify'
gem 'rsolr', '~> 2.0'
Expand Down
2 changes: 1 addition & 1 deletion spec/models/fcrepo_endpoint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
# What I found is that I could not stub the last receiver in the chain; as it would still
# attempt a HEAD request. So here is the "test".
connection = double(ActiveFedora::CachingConnection, delete: true)
fedora = double(ActiveFedora::Fedora, connection: connection)
fedora = double(ActiveFedora::Fedora, connection:)
expect(ActiveFedora).to receive(:fedora).and_return(fedora)
expect(connection).to receive(:delete).with(base_path)
expect { subject.remove! }.to change(described_class, :count).by(-1)
Expand Down

0 comments on commit 01c8643

Please sign in to comment.