Testing¶
MyNews uses Minitest. Tests live in the test/ directory.
Running Tests¶
# Run all tests
bundle exec rake test
# Or equivalently
bundle exec rake
# Run a single test file
bundle exec ruby test/test_my_news.rb
Test Database¶
Tests use an in-memory SQLite database (configured in defaults.yml under the test environment):