Sha256: 3db43c2f1e8a12ba265bc6ee96879597b60b547db31cfcc0e0a3936e038e929b
Contents?: true
Size: 646 Bytes
Versions: 8
Compression:
Stored size: 646 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://testdomain" 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
8 entries across 8 versions & 1 rubygems