Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fake with here docs will interpret quote too much #51

Open
pgrangelgo opened this issue Nov 29, 2018 · 0 comments
Open

fake with here docs will interpret quote too much #51

pgrangelgo opened this issue Nov 29, 2018 · 0 comments

Comments

@pgrangelgo
Copy link

When using quotes inside here doc in the context of fake, the quote will disappear from the output of the faked function. This is different from what is expected from using here doc.

Here is an exemple:

test_should_succeed_but_will_fail() {
  fake toto <<EOF
"test"
EOF

  assert 'toto | grep \"' 'should have found quote but seems like fake swallowed it'
}

test_will_succeed() {
  fake toto <<EOF
\"test\"
EOF

  assert 'toto | grep \"'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant