Forum: RSpec Newlines in step arguments Was How can I pass an XML block...

Posted by Ed Howland (Guest)
on 2010-03-06 20:38
(Received via mailing list)
On Tue, Apr 14, 2009 at 10:03 PM, Stephen Eley <sfeley@gmail.com> wrote:
> On Tue, Apr 14, 2009 at 10:37 PM, Stephen Eley <sfeley@gmail.com> wrote:
>>


> All right, never mind.  Having been given enough clues that the
> feature exists and what it generally might look like, I prowled
> through Cucumber's specs and examples until I got a clearer picture.
> Then, to keep my 'There ain't no documentation!' whining privileges, I
> went and added what I learned to the wiki:
>
> http://wiki.github.com/aslakhellesoy/cucumber/multiline-step-arguments
>
This is fantastic! I admit that I must gave skimmed over the that in
the book, but your wiki page made it very clear.

I wrote some steps that call a command and capture the output with
IO@popen. In my code I was testing, I used puts everywhere and could
not figure out how to match the newlines in Cuke,

E.g.
  Then the output should be
  """
  <output>

  """

  Scenarios:
    |command|args|output|
    |option|:dummy|-d, --[no]-dummy|

----

Thanks for the wiki page!

>
Cheers,
Ed

Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.