Sha256: 9b57d423be93f882cd0b84278ba2bca1ec0f99b7f9db85d07321a4a27a3903cf
Contents?: true
Size: 525 Bytes
Versions: 25
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module ActiveSupport module Testing # Warns when a test case does not perform any assertions. # # This is helpful in detecting broken tests that do not perform intended assertions. module TestsWithoutAssertions # :nodoc: def after_teardown super if assertions.zero? && !skipped? && !error? file, line = method(name).source_location warn "Test is missing assertions: `#{name}` #{file}:#{line}" end end end end end
Version data entries
25 entries across 25 versions & 3 rubygems