Skip to content

Commit

Permalink
fix lint identified by new rubocop rspec rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-sul committed Jan 8, 2024
1 parent 30712e6 commit fc37c3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/models/moab_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
.to raise_error(ArgumentError, "'INVALID_MOAB' is not a valid status")
end

it 'will accept a symbol, but will always return a string' do
it 'accepts a symbol, but will always return a string' do
expect(described_class.new(status: :invalid_moab).status).to eq 'invalid_moab'
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/services/audit/checksum_validator_utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
end

context 'when there are no MoabRecords to check' do
it 'will not create an instance of ChecksumValidator' do
it 'does not create an instance of ChecksumValidator' do
expect(Audit::ChecksumValidationJob).not_to receive(:perform_later)
described_class.validate_status_root('ok', root_name)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/services/catalog_utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
expect(described_class.populate_catalog_for_dir(storage_dir).count).to eq 3
end

it 'will not ingest a MoabRecord for a druid that has already been cataloged' do
it 'does not create a new MoabRecord for a druid that has already been cataloged' do
expect(MoabRecord.by_druid(druid).count).to eq 0
expect(described_class.populate_catalog_for_dir(storage_dir).count).to eq 3
expect(MoabRecord.by_druid(druid).count).to eq 1
Expand All @@ -194,7 +194,7 @@
describe '.populate_moab_storage_root' do
before { described_class.populate_catalog_for_all_storage_roots }

it "won't change objects in a fully seeded db" do
it "doesn't change objects in a fully seeded db" do
expect { described_class.populate_moab_storage_root('fixture_sr1') }.not_to change(MoabRecord, :count).from(17)
expect(PreservedObject.count).to eq 17
end
Expand Down

0 comments on commit fc37c3b

Please sign in to comment.