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