Sha256: 5d38e600ccecd3c5ecda8fb99d841d5b3f6648ced880ca4f2d339d5001da413d

Contents?: true

Size: 290 Bytes

Versions: 46

Compression:

Stored size: 290 Bytes

Contents

      it "returns a rejected promise if the selector can't be found on the current page", (done) ->
        html = '<div class="foo-bar">text</div>'
        up.extract('.foo-bar', html).fail (error) ->
          expect(error).toEqual(/Could not find selector ".foo-bar"/i)
          done()

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
unpoly-rails-1.0.3 design/test_rejected_promise.txt
unpoly-rails-1.0.1 design/test_rejected_promise.txt
unpoly-rails-1.0.0 design/test_rejected_promise.txt
unpoly-rails-0.62.1 design/test_rejected_promise.txt
unpoly-rails-0.62.0 design/test_rejected_promise.txt
unpoly-rails-0.61.1 design/test_rejected_promise.txt
unpoly-rails-0.61.0 design/test_rejected_promise.txt
unpoly-rails-0.60.3 design/test_rejected_promise.txt
unpoly-rails-0.60.2 design/test_rejected_promise.txt
unpoly-rails-0.60.1 design/test_rejected_promise.txt
unpoly-rails-0.60.0 design/test_rejected_promise.txt
unpoly-rails-0.57.0 design/test_rejected_promise.txt
unpoly-rails-0.56.7 design/test_rejected_promise.txt
unpoly-rails-0.56.6 design/test_rejected_promise.txt
unpoly-rails-0.56.5 design/test_rejected_promise.txt
unpoly-rails-0.56.4 design/test_rejected_promise.txt
unpoly-rails-0.56.3 design/test_rejected_promise.txt
unpoly-rails-0.56.2 design/test_rejected_promise.txt
unpoly-rails-0.56.1 design/test_rejected_promise.txt
unpoly-rails-0.56.0 design/test_rejected_promise.txt