Sha256: a50ca2a5e12a083639235e23abcdadae20f003faf2fe4d5ef5d6b9f64b655d6e

Contents?: true

Size: 647 Bytes

Versions: 10

Compression:

Stored size: 647 Bytes

Contents

//= require geoblacklight

describe('MetadataDownloadButton', function() {
  describe('initialize', function() {
    fixture.set('<button id="foo" data-ref-endpoint="http://testdomain" data-ref-download="#bar">test element</button><a href="http://test2domain" id="bar">another test element</a>');

    it('creates a new instance and sets the download button @href value', function() {
      var button = new GeoBlacklight.MetadataDownloadButton('#foo');
      expect(button.$el.attr('id')).toBe('foo');
      expect(button.$download.attr('id')).toBe('bar');
      expect(button.$download.attr('href')).toBe('http://testdomain');
    });
  });
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
geoblacklight-2.1.2 spec/javascripts/metadata_download_button_spec.js
geoblacklight-2.1.1 spec/javascripts/metadata_download_button_spec.js
geoblacklight-2.1.0 spec/javascripts/metadata_download_button_spec.js
geoblacklight-2.0.0 spec/javascripts/metadata_download_button_spec.js
geoblacklight-1.9.1 spec/javascripts/metadata_download_button_spec.js
geoblacklight-1.9.0 spec/javascripts/metadata_download_button_spec.js
geoblacklight-1.8.0 spec/javascripts/metadata_download_button_spec.js
geoblacklight-1.7.1 spec/javascripts/metadata_download_button_spec.js
geoblacklight-1.7.0 spec/javascripts/metadata_download_button_spec.js
geoblacklight-1.6.0 spec/javascripts/metadata_download_button_spec.js