Sha256: 6bd05e6c44984f13750d283c935d1b32c6d1ab14f55cb67d5d3d8069f0c43bd4
Contents?: true
Size: 509 Bytes
Versions: 5
Compression:
Stored size: 509 Bytes
Contents
RSpec.describe Europeana::API::Record::Hierarchy do let(:record_id) { '/abc/1234' } let(:params) { { callback: 'doSomething();' } } subject { described_class.new(record_id) } %w(self parent children).each do |relation| describe "##{relation}" do it "should retrieve #{relation} hierarchy data from the API" do subject.send(relation) expect(a_request(:get, %r{www.europeana.eu/api/v2/record#{record_id}/#{relation}.json})).to have_been_made.once end end end end
Version data entries
5 entries across 5 versions & 1 rubygems