Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up bad_008 specs #73

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'byebug'
require 'marc_cleanup'

RSpec.describe 'test bad_008?' do
RSpec.describe 'bad_008?' do
describe 'bad book format 008' do
let(:marcfile) {"#{Dir.getwd}/spec/fixtures/fixed_fields/marc_with_bad_book_008.xml"}
let(:reader) { MARC::XMLReader.new(marcfile, parser: 'magic') }
Expand All @@ -12,4 +12,12 @@
expect(MarcCleanup.bad_008?(record_with_bad_008)).to eq true
end
end
end
describe 'bad computer format 008' do
let(:marcfile) {"#{Dir.getwd}/spec/fixtures/fixed_fields/marc_with_bad_comp_008.xml"}
let(:reader) { MARC::XMLReader.new(marcfile, parser: 'magic') }
let(:record_with_bad_008) { reader.first }
it 'knows that a record with bad computer 008 is invalid' do
expect(MarcCleanup.bad_008?(record_with_bad_008)).to eq true
end
end
end
15 changes: 0 additions & 15 deletions spec/fixed_fields/comp_format_bad_008_spec.rb

This file was deleted.