Announce rake stdout with cucumber and aruba

316 views Asked by At

How to tell cucumber/aruba to display the stdout of a rake command. The following code doesn't work for me

@announce
Scenario: test rake task
 When I run 'rake -verion'
 Then the output should contain "0.9.2.2"

Even with the @announce tag, the stdout of the command "rake -version" is not outputted.

1

There are 1 answers

0
jordanpg On

The rake command has a typo, the aruba call with a quoted command is deprecated in favor of backticks, and you are missing a Given clause (although it does work without it):

Scenario: test rake task
 When I run `rake --version`
 Then the output should contain "0.9.2.2"