Sha256: e49fc44d82e7313988b8f6140b9015efafcdda825ac1696482b9908b47bbb077

Contents?: true

Size: 473 Bytes

Versions: 20

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe Geoblacklight::Metadata::Html do
  let(:url) { 'https://s3.amazonaws.com/cugir-data/00/77/41/fgdc.html' }
  let(:metadata) do
    described_class.new(
      Geoblacklight::Reference.new(
        ['http://www.w3.org/1999/xhtml', url]
      )
    )
  end

  describe '#transform' do
    it 'renders an iframe with the html endpoint' do
      expect(metadata.transform).to include('iframe', url)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.8.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.7.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.6.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.5.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-4.0.0.pre.alpha spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.4.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.3.1 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.3.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.2.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.1.0 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.0.1 spec/lib/geoblacklight/metadata/html_spec.rb
geoblacklight-3.0.0 spec/lib/geoblacklight/metadata/html_spec.rb