From ae6089be8c698c1cb3fa51374f8d0cf255b4ecc1 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 23 Nov 2022 10:47:26 +0100 Subject: [PATCH] Update crossref_json_reader_spec.rb --- spec/readers/crossref_json_reader_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/readers/crossref_json_reader_spec.rb b/spec/readers/crossref_json_reader_spec.rb index 86f1565b..f2e20366 100644 --- a/spec/readers/crossref_json_reader_spec.rb +++ b/spec/readers/crossref_json_reader_spec.rb @@ -3,14 +3,12 @@ require 'spec_helper' describe Briard::Metadata, vcr: true do - subject { described_class.new(input: input, from: 'crossref_json') } + subject { described_class.new(input: input) } - let(:input) { '10.7554/eLife.01567' } + let(:input) { "#{fixture_path}crossref.json" } context 'get crossref_json raw' do it 'journal article' do - input = "#{fixture_path}crossref.json" - subject = described_class.new(input: input, from: 'crossref_json') expect(subject.raw).to eq(File.read(input).strip) end end