Ascii tables can simplify your tests.
This was originally described in ASCII Tables For Clearer Testing and in the readme of the ATV gem.
Please browse the submissions here to see how ASCII tables reduce noise and improve clarity of tests.
examples_spec.rb contains miscellaneous examples demonstrating different techniques for setup and testing.
Prime Generator has 2 test files, the '_with_tables' version is the result of refactoring the original test file using ASCII tables.
Yes! Please contribute more examples of ASCII tables in use. Pull requests are welcome on GitHub at https://github.com/kellyfelkins/examples_of_testing_with_ascii_tables. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
These examples are available as open source under the terms of the ISC License.