I am writing a test and verifying some data. It's failing due to the two \\
I get in the expected data string.
My test code is:
actual_string.should eq 'Today is Tuesday.\n It is third day of the week.'
When I execute this code, I get an error saying the actual data does not match the expected data.
The actual data is:
'Today is Tuesday.\n It is third day of the week.'
The expected data is:
'Today is Tuesday.\\n It is third day of the week.'
Not sure from where is that extra slash '\' is coming from in the expected data. How can I resolve this?