features/steps/cli_steps.rb in flapjack-0.7.35 vs features/steps/cli_steps.rb in flapjack-0.8.0
- old
+ new
@@ -58,11 +58,11 @@
rescue Errno::EINVAL, Errno::ESRCH, RangeError, Errno::EPERM => e
puts "rescued error from kill: #{e.class} - #{e.message}" if @debug
attempts += 1; sleep 0.1; retry if attempts < max_attempts
running = false
end
- running.should be_true
+ expect(running).to be true
when 'stop'
if process
# it's a child process, so we can use waitpid
begin
Timeout::timeout(seconds.to_i) do
@@ -82,18 +82,18 @@
rescue Errno::EINVAL, Errno::ESRCH, RangeError, Errno::EPERM => e
running = false
end
end
end
- running.should be_false
+ expect(running).to be false
when 'restart'
read_pid = nil
while attempts < max_attempts
time_and_pid = time_and_pid_from_file("tmp/cucumber_cli/#{exe}_d.pid")
read_pid = time_and_pid.last
break if read_pid != pid
attempts += 1; sleep 0.1
end
- read_pid.should_not == pid
+ expect(read_pid).not_to eq(pid)
end
end