Skip to content

Commit

Permalink
fix to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed Jan 23, 2020
1 parent 8b1f0a1 commit 6705625
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@

context 'when marc files' do
let(:month) { Date.today.month }
let(:month_string) { format("%02d", month) }

let(:entries) do
[
Expand All @@ -253,7 +254,7 @@
end

it do
expect(upload_marc_files).to match_array ["#{selection_name}.xml", "#{selection_name}.mrc", "#{selection_name}-#{month}.xml", "#{selection_name}-#{month}.mrc", "#{collection.name}_Complete.xml", "#{collection.name}_Complete.mrc"]
expect(upload_marc_files).to match_array ["#{selection_name}.xml", "#{selection_name}.mrc", "#{selection_name}-#{month_string}.xml", "#{selection_name}-#{month_string}.mrc", "#{collection.name}_Complete.xml", "#{collection.name}_Complete.mrc"]
expect(collection).not_to have_received(:upload_marc_file).with('.')
expect(collection).not_to have_received(:upload_marc_file).with('..')
expect(collection).to have_received(:upload_marc_file).with(selection.name + '.mrc')
Expand Down

0 comments on commit 6705625

Please sign in to comment.