File: test_helper.rb

package info (click to toggle)
ruby-akismet 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 124 kB
  • ctags: 62
  • sloc: ruby: 380; makefile: 3
file content (6 lines) | stat: -rw-r--r-- 253 bytes parent folder | download
1
2
3
4
5
6
require 'minitest/autorun'
require 'akismet'

API_KEY = ENV['AKISMET_API_KEY'] || raise("Set the AKISMET_API_KEY environment variable to an API key obtained from akismet.com")

Test = defined?(Minitest::Test) ? Minitest::Test : MiniTest::Unit::TestCase