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.9.10 spec/orcid_spec.rb
bolognese-0.9.9 spec/orcid_spec.rb
bolognese-0.9.8 spec/orcid_spec.rb
bolognese-0.9.7 spec/orcid_spec.rb
bolognese-0.9.6 spec/orcid_spec.rb
bolognese-0.9.5 spec/orcid_spec.rb
bolognese-0.9.4 spec/orcid_spec.rb
bolognese-0.9.3 spec/orcid_spec.rb
bolognese-0.9.2 spec/orcid_spec.rb
bolognese-0.9.1 spec/orcid_spec.rb
bolognese-0.9 spec/orcid_spec.rb
bolognese-0.8.13 spec/orcid_spec.rb
bolognese-0.8.12 spec/orcid_spec.rb
bolognese-0.8.11 spec/orcid_spec.rb
bolognese-0.8.10 spec/orcid_spec.rb
bolognese-0.8.7 spec/orcid_spec.rb
bolognese-0.8.5 spec/orcid_spec.rb
bolognese-0.8.4 spec/orcid_spec.rb
bolognese-0.8.3 spec/orcid_spec.rb
bolognese-0.8.2 spec/orcid_spec.rb