Skip to content

Commit

Permalink
Rename a spec
Browse files Browse the repository at this point in the history
all specs must end in *_spec.rb
  • Loading branch information
jcoyne committed Apr 29, 2019
1 parent cffaf40 commit eba6cf6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-04-26 16:20:32 -0500 using RuboCop version 0.65.0.
# on 2019-04-29 12:12:12 -0500 using RuboCop version 0.65.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -117,7 +117,7 @@ RSpec/ContextWording:
RSpec/DescribeClass:
Exclude:
- 'spec/requests/about_spec.rb'
- 'spec/requests/metadata_refresh.rb'
- 'spec/requests/metadata_refresh_spec.rb'

# Offense count: 32
# Cop supports --auto-correct.
Expand Down
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
@@ -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 eba6cf6

Please sign in to comment.