Sha256: 3e4e12b22c4e58017a8fb7a6faefd2ea4bb6f62d8b720fd63f5fd8a1d32c0a57
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
require 'frameworks/wait' describe Wait do it "should exit silently if the block returns true" do Wait.until(){ true } end it "should raise an exception if the default timeout expires" do start_time = Time.now expect { Wait.until(){ Time.now > (start_time + (6 * 60)) } }.to raise_error end it "should raise an exception if the specified timeout expires" do start_time = Time.now expect { Wait.until(options={:timeout => 1}) do Time.now > (start_time + (2 * 60)) end }.to raise_error end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
frameworks-capybara-2.3.1 | spec/wait_spec.rb |
frameworks-capybara-2.3.0 | spec/wait_spec.rb |
frameworks-capybara-2.2.0 | spec/wait_spec.rb |
frameworks-capybara-2.1.0 | spec/wait_spec.rb |