follow me icons

Thursday, July 10, 2014

(unknown) block sequence entries are not allowed in this context at line 5 column 14 (Psych::Syntax Error)

This error come up when I run my cucumber test file.

Solution: the problem is because in my config.yml file I have an entry with "-".

So in my config.yml I have the following:

test_server:
 member_no: -
 member_name: -
 year: 2014

To fix the issue, just remove the "-" from config.yml so that ruby can parse the yml file

test_server:
 member_no: 00000010
 member_name: cucumber
 year: 2014

1 comment:

  1. To fix the issue, just remove the "-" from config.yml so that ruby can parse the yml file

    test_server:
    member_no: 00000010
    member_name: cucumber
    year: 2014

    ReplyDelete