capybara-webkit 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/NEWS.md +4 -0
- data/README.md +2 -2
- data/gemfiles/2.4.gemfile.lock +1 -1
- data/gemfiles/2.5.gemfile.lock +1 -1
- data/lib/capybara/webkit/driver.rb +5 -1
- data/lib/capybara/webkit/version.rb +1 -1
- data/spec/integration/session_spec.rb +7 -9
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 566254149a5185cfd460a795c9edf23810cfdb48
         | 
| 4 | 
            +
              data.tar.gz: f946fd8c9f1909a1a60422670aa7fa23ebac9891
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f5971a9411cc36517d4eb7ad8a8c3143c825e514fd1b53e394e9fbbacac9b3b227430ef434401992408b3d46200d9a0c184d02b2c7c94bfac9bbc1023df566b1
         | 
| 7 | 
            +
              data.tar.gz: f48aee4ab47ed6400d34526d7a19ad7fdb74dc340e2d42165401b04780e5d32d445cb115f396da6dfab281dcdc6c7f01c2a0390b34dce4b3f43f5c610fb054df
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/NEWS.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -101,10 +101,10 @@ Capybara::Webkit.configure do |config| | |
| 101 101 | 
             
              # Allow pages to make requests to any URL without issuing a warning.
         | 
| 102 102 | 
             
              config.allow_unknown_urls
         | 
| 103 103 |  | 
| 104 | 
            -
              # Allow a  | 
| 104 | 
            +
              # Allow a specific domain without issuing a warning.
         | 
| 105 105 | 
             
              config.allow_url("example.com")
         | 
| 106 106 |  | 
| 107 | 
            -
              # Allow a  | 
| 107 | 
            +
              # Allow a specific URL and path without issuing a warning.
         | 
| 108 108 | 
             
              config.allow_url("example.com/some/path")
         | 
| 109 109 |  | 
| 110 110 | 
             
              # Wildcards are allowed in URL expressions.
         | 
    
        data/gemfiles/2.4.gemfile.lock
    CHANGED
    
    
    
        data/gemfiles/2.5.gemfile.lock
    CHANGED
    
    
| @@ -334,8 +334,12 @@ module Capybara::Webkit | |
| 334 334 | 
             
                  end.merge(original_text: options[:text])
         | 
| 335 335 | 
             
                end
         | 
| 336 336 |  | 
| 337 | 
            +
                def default_wait_time
         | 
| 338 | 
            +
                  Capybara.respond_to?(:default_max_wait_time) ? Capybara.default_max_wait_time : Capybara.default_wait_time
         | 
| 339 | 
            +
                end
         | 
| 340 | 
            +
             | 
| 337 341 | 
             
                def find_modal(type, id, options)
         | 
| 338 | 
            -
                  Timeout::timeout(options[:wait] ||  | 
| 342 | 
            +
                  Timeout::timeout(options[:wait] || default_wait_time) do
         | 
| 339 343 | 
             
                    @browser.find_modal(id)
         | 
| 340 344 | 
             
                  end
         | 
| 341 345 | 
             
                rescue ModalNotFound
         | 
| @@ -41,13 +41,12 @@ describe Capybara::Session do | |
| 41 41 | 
             
                  end
         | 
| 42 42 | 
             
                end
         | 
| 43 43 |  | 
| 44 | 
            -
                 | 
| 45 | 
            -
                   | 
| 46 | 
            -
             | 
| 44 | 
            +
                around do |example|
         | 
| 45 | 
            +
                  Capybara.using_wait_time(1) do
         | 
| 46 | 
            +
                    example.run
         | 
| 47 | 
            +
                  end
         | 
| 47 48 | 
             
                end
         | 
| 48 49 |  | 
| 49 | 
            -
                after { Capybara.default_wait_time = @default_wait_time }
         | 
| 50 | 
            -
             | 
| 51 50 | 
             
                it "waits for a request to load" do
         | 
| 52 51 | 
             
                  subject.visit("/")
         | 
| 53 52 | 
             
                  subject.find_button("Submit").click
         | 
| @@ -466,10 +465,9 @@ describe Capybara::Session do | |
| 466 465 |  | 
| 467 466 | 
             
                context "with wait time of 1 second" do
         | 
| 468 467 | 
             
                  around do |example|
         | 
| 469 | 
            -
                     | 
| 470 | 
            -
             | 
| 471 | 
            -
                     | 
| 472 | 
            -
                    Capybara.default_wait_time = default_wait_time
         | 
| 468 | 
            +
                    Capybara.using_wait_time(1) do
         | 
| 469 | 
            +
                      example.run
         | 
| 470 | 
            +
                    end
         | 
| 473 471 | 
             
                  end
         | 
| 474 472 |  | 
| 475 473 | 
             
                  it "waits for an element to appear in the viewport when clicked" do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: capybara-webkit
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.7. | 
| 4 | 
            +
              version: 1.7.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - thoughtbot
         | 
| @@ -13,7 +13,7 @@ authors: | |
| 13 13 | 
             
            autorequire: 
         | 
| 14 14 | 
             
            bindir: bin
         | 
| 15 15 | 
             
            cert_chain: []
         | 
| 16 | 
            -
            date: 2015- | 
| 16 | 
            +
            date: 2015-09-24 00:00:00.000000000 Z
         | 
| 17 17 | 
             
            dependencies:
         | 
| 18 18 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 19 19 | 
             
              name: capybara
         |