Sha256: ce0b909350f950d42ab751bf8151434f7a2baa0cc186122098b5ae88c9a9bdfb

Contents?: true

Size: 462 Bytes

Versions: 13

Compression:

Stored size: 462 Bytes

Contents

Before do
  @start_time = Time.now
end

When /^the client is idle for (\S+) seconds$/ do |seconds|
  sleep seconds.to_f
end

Then /^it should take at least (\S+) seconds$/ do |s|
  min_elapsed_time = s.to_f
  elapsed_time = Time.now - @start_time
  elapsed_time.should >= min_elapsed_time
end

Then /^it should take less than (\S+) seconds$/ do |s|
  max_elapsed_time = s.to_f
  elapsed_time = Time.now - @start_time
  elapsed_time.should < max_elapsed_time
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ftpd-0.17.0 features/step_definitions/timing.rb
ftpd-0.16.0 features/step_definitions/timing.rb
ftpd-0.15.0 features/step_definitions/timing.rb
ftpd-0.14.0 features/step_definitions/timing.rb
ftpd-0.13.0 features/step_definitions/timing.rb
ftpd-0.12.0 features/step_definitions/timing.rb
ftpd-0.11.0 features/step_definitions/timing.rb
ftpd-0.10.0 features/step_definitions/timing.rb
ftpd-0.9.0 features/step_definitions/timing.rb
ftpd-0.7.1 features/step_definitions/timing.rb
ftpd-0.8.0 features/step_definitions/timing.rb
ftpd-0.7.0 features/step_definitions/timing.rb
ftpd-0.6.0 features/step_definitions/timing.rb