Sha256: 82034725d0142dc1423b65ec78968cf69b4e9d9b67e4a00b6498b334beea7133
Contents?: true
Size: 937 Bytes
Versions: 3
Compression:
Stored size: 937 Bytes
Contents
#= require spec_helper #= require modules/button describe 'Button', -> beforeEach -> template 'button' describe 'manual clicks', -> it 'fires when clicking on the container directly', -> button = new modularity.Button($('#konacha #button1')) button.bind_event('clicked', (spy = sinon.spy())) button.container.click() spy.should.have.been.calledOnce it 'fires when clicking embedded elements of the button', -> button = new modularity.Button($('#konacha #button2')) button.bind_event('clicked', (spy = sinon.spy())) button.container.find('.embedded').click() spy.should.have.been.calledOnce describe 'programmatic clicks', -> it 'programmatically clicks the button', -> button = new modularity.Button($('#konacha #button2')) spy = sinon.spy() button.bind_event('clicked', spy) button.click() spy.should.have.been.called
Version data entries
3 entries across 3 versions & 1 rubygems