spec/doi_spec.rb in cirneco-0.9.15 vs spec/doi_spec.rb in cirneco-0.9.16

- old
+ new

@@ -87,11 +87,11 @@ end context "mint and hide DOIs", vcr: true, :order => :defined do it 'mints a doi' do subject.options = mint_options - expect { subject.mint filepath }.to output("DOI 10.5438/0000-03vc minted for cool-dois.html.md\n").to_stdout + expect { subject.mint filepath }.to output("DOI 10.5438/55e5-t5c0 minted for cool-dois.html.md\n").to_stdout end it 'hides a doi' do filename = 'cool-dois-minted/index.html' filepath = fixture_path + filename @@ -99,17 +99,17 @@ expect { subject.hide filepath }.to output("DOI 10.5438/55e5-t5c0 hidden for cool-dois-minted.html.md\n").to_stdout end it 'mints and hides a doi' do subject.options = mint_options - expect { subject.mint_and_hide filepath }.to output("DOI 10.5438/0000-03vc minted and hidden for cool-dois.html.md\n").to_stdout + expect { subject.mint_and_hide filepath }.to output("DOI 10.5438/55e5-t5c0 minted and hidden for cool-dois.html.md\n").to_stdout end it 'mints dois for list of urls' do filepath = fixture_path + 'index.html' subject.options = mint_options - expect { subject.mint filepath }.to output("DOI 10.5438/0000-03vc minted for cool-dois.html.md\nDOI 10.5438/0000-00ss minted for index.html.erb\n").to_stdout + expect { subject.mint filepath }.to output("DOI 10.5438/55e5-t5c0 minted for cool-dois.html.md\nDOI 10.5438/0007-nw90 minted for index.html.erb\n").to_stdout end it 'hides dois for list of urls' do filepath = fixture_path + 'index.html' subject.options = mint_options @@ -117,10 +117,10 @@ end it 'mints and hides dois for list of urls' do filepath = fixture_path + 'index.html' subject.options = mint_options - expect { subject.mint_and_hide filepath }.to output("DOI 10.5438/0000-03vc minted and hidden for cool-dois.html.md\nDOI 10.5438/0000-00ss minted and hidden for index.html.erb\n").to_stdout + expect { subject.mint_and_hide filepath }.to output("DOI 10.5438/55e5-t5c0 minted and hidden for cool-dois.html.md\nDOI 10.5438/0000-00ss minted and hidden for index.html.erb\n").to_stdout end end context "jats", vcr: true do it 'writes jats for list of urls' do