Sha256: c926bb12a77ec319e3b96f8ddcfa4c14d9d8f01e571995145ea0a31deff479ce

Contents?: true

Size: 851 Bytes

Versions: 140

Compression:

Stored size: 851 Bytes

Contents

require 'spec_helper'

describe Bolognese::Metadata, vcr: true do
  # context "orcid metadata" do
  #   before(:each) { allow(Time).to receive(:now).and_return(Time.mktime(2015, 6, 25)) }

  #   let(:orcid) { "0000-0002-0159-2197" }

  #   it "get_orcid_metadata" do
  #     response = subject.get_orcid_metadata(orcid)
  #     expect(response["title"]).to eq("ORCID record for Jonathan A. Eisen")
  #     expect(response["container-title"]).to eq("ORCID Registry")
  #     expect(response["issued"]).to eq("2015")
  #     expect(response["type"]).to eq("entry")
  #     expect(response["URL"]).to eq("http://orcid.org/0000-0002-0159-2197")
  #   end

  #   it "get_orcid_metadata with not found error" do
  #     response = subject.get_orcid_metadata("#{orcid}x")
  #     expect(response).to eq("errors"=>"Resource not found.")
  #   end
  # end
end

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
bolognese-0.10.21 spec/orcid_spec.rb
bolognese-0.10.20 spec/orcid_spec.rb
bolognese-0.10.19 spec/orcid_spec.rb
bolognese-0.10.18 spec/orcid_spec.rb
bolognese-0.10.17 spec/orcid_spec.rb
bolognese-0.10.16 spec/orcid_spec.rb
bolognese-0.10.15 spec/orcid_spec.rb
bolognese-0.10.14 spec/orcid_spec.rb
bolognese-0.10.13 spec/orcid_spec.rb
bolognese-0.10.11 spec/orcid_spec.rb
bolognese-0.10.10 spec/orcid_spec.rb
bolognese-0.10.9 spec/orcid_spec.rb
bolognese-0.10.8 spec/orcid_spec.rb
bolognese-0.10.7 spec/orcid_spec.rb
bolognese-0.10.6 spec/orcid_spec.rb
bolognese-0.10.5 spec/orcid_spec.rb
bolognese-0.10.4 spec/orcid_spec.rb
bolognese-0.10.3 spec/orcid_spec.rb
bolognese-0.10.2 spec/orcid_spec.rb
bolognese-0.10 spec/orcid_spec.rb