Skip to content

Commit

Permalink
Merge pull request #239 from sul-dlss/rename
Browse files Browse the repository at this point in the history
Rename a spec
  • Loading branch information
jcoyne committed May 7, 2019
2 parents 7b36240 + 1e20fc1 commit 7fcaed4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ RSpec/ContextWording:
RSpec/DescribeClass:
Exclude:
- 'spec/requests/about_spec.rb'
- 'spec/requests/metadata_refresh.rb'
- 'spec/requests/metadata_refresh_spec.rb'
- 'spec/requests/metadata_spec.rb'

# Offense count: 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

before do
allow(Dor).to receive(:find).and_return(object)
allow(RefreshMetadataAction).to receive(:run)
allow(RefreshMetadataAction).to receive(:run).and_return('<xml />')
allow(object).to receive(:save)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/services/refresh_metadata_action_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require 'spec_helper'
require 'rails_helper'

RSpec.describe RefreshMetadataAction do
subject(:refresh) { described_class.run(item) }
Expand All @@ -13,7 +13,7 @@
end

it 'gets the data an puts it in descMetadata' do
refresh
expect(refresh).not_to be_nil
expect(item.descMetadata.content).to eq '<xml/>'
end
end

0 comments on commit 7fcaed4

Please sign in to comment.