`step` returns `nil` so it isn't suitable as a test in `try_for`.
commita8ace8a8df79b3b6e8264e664f23e515806eccdb
authorTails developers <amnesia@boum.org>
Wed, 8 Oct 2014 08:23:35 +0000 (8 10:23 +0200)
committerTails developers <amnesia@boum.org>
Wed, 8 Oct 2014 08:54:09 +0000 (8 10:54 +0200)
tree6358f7fc6c4818f0018bd35a2fe0b52241bfa06e
parentb33e470852af895b4b384205f19b26648e7b9e2b
`step` returns `nil` so it isn't suitable as a test in `try_for`.

At least with cucumber 1.3.8-1~bpo70+1, `step` always returns `nil`,
which corresponds to `false` when used as a boolean so the `try_for`
will never succeed. The return value of steps are indeed pretty much
considered undefined, so we instead refactor the test into a VM helper
function.
features/step_definitions/common_steps.rb
features/step_definitions/evince.rb
features/support/helpers/vm_helper.rb