I am really confused about this Psych BadAlias error. I have tried everything but not able to debug this error.
When i am executing my test case i am getting this error
Failure/Error: @st.fetch(o.anchor) { raise BadAlias, "Unknown alias: #{o.anchor}" }
Psych::BadAlias:
Unknown alias: 2
But before it was working perfectly fine.
This is my fixtures file workers.yml
Worker_1:
name: Hello
preferred_first_name: First
preferred_last_name: Last
assignment: Assignemnt_1
talent: Ruby_development
Any kind of Help is appreciated! Thanks
I solved it, as there was just a syntax error in yaaml file. we canot use "p-r-a-t-i-k" we have to use "p_r_a_t_i_k"