features/step_definitions/timing.rb in ftpd-0.17.0 vs features/step_definitions/timing.rb in ftpd-1.0.0
- old
+ new
@@ -7,13 +7,13 @@
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
+ expect(elapsed_time).to be >= 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
+ expect(elapsed_time).to be < max_elapsed_time
end