Skip to content

Doc Strings

Ahmed Ali edited this page Jan 24, 2016 · 2 revisions

##@Everyone Steps can also accept a multiline content, in Gherkin it is called Doc String.

    Then I write into the "Description" view the following
      """
       This is my very fancy long description
      """

##@Dev You can match such step with the following step definition:

   Then(@"I write into the \"(.*)\" view the following", ^(NSArray<NSString *> *args, NSDictionary *userInfo) {
        NSString * viewLabel = args[0];
        NSString * descriptionContent = userInfo[@"DocString"];
    });