Skip to content

Instantly share code, notes, and snippets.

@stephanwehner
Created June 10, 2014 22:33
Show Gist options
  • Save stephanwehner/feb91b53ae17d78fccae to your computer and use it in GitHub Desktop.
Save stephanwehner/feb91b53ae17d78fccae to your computer and use it in GitHub Desktop.
# Avoiding heredoc.chomp as in
# assert_select "div#order p", <<-STR.chomp
# Test ABC
# Test DEF
# STR
def assert_select(a,b)
puts "assert_select: #{a.inspect}, #{b.inspect}"
end
assert_select "abc def", "
TEST ABC
TEST DEF
".strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment