Sha256: a98280eb3264339d02968286651bf3ca8f6eeb1300fbb2bd12640e46dda8c609

Contents?: true

Size: 323 Bytes

Versions: 37

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true

# Add eventually helper for async operations
def eventually(timeout: 5, delay: 0.1)
  deadline = Time.zone.now + timeout
  loop do
    yield
    break
  rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e
    raise e if Time.zone.now >= deadline

    sleep delay
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/ckeditor5-1.24.9/spec/e2e/support/eventually.rb
ckeditor5-1.24.9 spec/e2e/support/eventually.rb
ckeditor5-1.24.8 spec/e2e/support/eventually.rb
ckeditor5-1.24.6 spec/e2e/support/eventually.rb
ckeditor5-1.24.5 spec/e2e/support/eventually.rb
ckeditor5-1.24.4 spec/e2e/support/eventually.rb
ckeditor5-1.24.3 spec/e2e/support/eventually.rb
ckeditor5-1.24.2 spec/e2e/support/eventually.rb
ckeditor5-1.24.1 spec/e2e/support/eventually.rb
ckeditor5-1.24.0 spec/e2e/support/eventually.rb
ckeditor5-1.23.5 spec/e2e/support/eventually.rb
ckeditor5-1.23.4 spec/e2e/support/eventually.rb
ckeditor5-1.23.3 spec/e2e/support/eventually.rb
ckeditor5-1.23.2 spec/e2e/support/eventually.rb
ckeditor5-1.23.1 spec/e2e/support/eventually.rb
ckeditor5-1.23.0 spec/e2e/support/eventually.rb
ckeditor5-1.22.0 spec/e2e/support/eventually.rb
ckeditor5-1.21.0 spec/e2e/support/eventually.rb
ckeditor5-1.20.1 spec/e2e/support/eventually.rb
ckeditor5-1.20.0 spec/e2e/support/eventually.rb