lib/antismoker/tests.rb in antismoker-0.0.2 vs lib/antismoker/tests.rb in antismoker-0.1.0
- old
+ new
@@ -32,10 +32,10 @@
def sleep_with_progress(n)
deadline = Time.now + n
while Time.now < deadline
STDOUT.putc(?.)
STDOUT.flush
- sleep(n / 3)
+ sleep(n.to_f / 3)
end
end
def run(options={})
STDOUT.write("smoke testing: #{self}: ")