magic_test icon indicating copy to clipboard operation
magic_test copied to clipboard

Trim white space when flushing assertions

Open gazayas opened this issue 1 year ago • 0 comments

Fixes #51.

pry(#<BasicsTest>)> "#{last["action"]} #{last["target"]}#{last["options"]}" + "\n"
=> "assert page.has_content? 'Foo was successfully created.' \n"

Since we're tagging on a new line at the end with a +, just calling strip here should suffice.

gazayas avatar Jun 23 '23 06:06 gazayas