Sha256: d46f12fb9d0fdba8e3c4974da48480fb92fc6406a650f120b27e06c2f4e1cb03

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

describe 'up.popup', ->

  describe 'Javascript functions', ->

    describe 'up.popup.attach', ->

      it 'should have tests'

    describe 'up.popup.coveredUrl', ->

      it 'returns the URL behind the popup', (done) ->
        up.history.replace('/foo')
        expect(up.popup.coveredUrl()).toBeUndefined()

        $popupLink = affix('a[href="/bar"][up-popup=".container"]')
        $popupLink.click()
        @lastRequest().respondWith
          status: 200
          contentType: 'text/html'
          responseText:
            """
            <div class="container">text</div>
            """
        expect(up.popup.coveredUrl()).toEndWith('/foo')
        up.popup.close().then ->
          expect(up.popup.coveredUrl()).toBeUndefined()
          done()

    describe 'up.popup.close', ->

      it 'should have tests'

    describe 'up.popup.source', ->

      it 'should have tests'

  describe 'unobtrusive behavior', ->

    describe 'a[up-popup]', ->

      it 'should have tests'

    describe '[up-close]', ->

      it 'should have tests'
      

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
upjs-rails-0.12.5 spec_app/spec/javascripts/up/popup_spec.js.coffee
upjs-rails-0.12.4 spec_app/spec/javascripts/up/popup_spec.js.coffee
upjs-rails-0.12.3 spec_app/spec/javascripts/up/popup_spec.js.coffee
upjs-rails-0.12.2 spec_app/spec/javascripts/up/popup_spec.js.coffee