cucumber/aruba — Issue #90: How to match an expectation that ends with a space?
Author: rubyripperdev
Created: 2011-10-12 21:34:07+00:00
State: open

Just starting with cucumber and aruba. Currently I am running into a problem.

If I compare a multiline string, it fails right now because of 1 space difference. This is what I get.

------------Feature-----------
Feature: Manage rubyripper preferences

Background:
Given rubyripper will find "no audio disc" is inserted
When I run rubyripper in cli mode with default config

Scenario: Show the Codecs submenu
When I choose "1" in order to get to the preferences menu
And I choose "3" in order to get to the codecs submenu
And I press ENTER "3" times to close the application
Then the output should contain:
"""
*** CODEC PREFERENCES ***

1) Flac [ ]
2) Flac options passed: --best -V
3) Vorbis [*]
4) Oggenc options passed: -q 4
5) Mp3 [ ]
6) Lame options passed: -V 3 --id3v2-only
7) Wav [ ]
8) Other codec [ ]
9) Commandline passed:
10) Playlist support [*]
11) Maximum extra encoding threads: 2
12) Replace spaces with underscores [ ]
13) Downsize all capital letters in filenames [ ]
14) Normalize program: none
15) Normalize modus: album
99) Back to settings main menu

Please type the number of the setting you wish to change [99] :
"""

---------------Result-------------

- 9) Commandline passed:
+ 9) Commandline passed:
-Please type the number of the setting you wish to change [99] :
+Please type the number of the setting you wish to change [99] :

--------------------------------------
As you can very well see, it is aruba that apparently strips the space in the expectation and then fails in comparing with the output. Are there any workarounds available?

Kind regards,
Bouke Woudstra
Rubyripper developer