Module: Reeve::Testing::ComplianceAssertions

Includes:
Assertions
Defined in:
lib/reeve/testing/compliance_assertions.rb

Overview

The shared compliance suite (FR-018), for Minitest. Including it is the suite: Minitest runs every test_-prefixed method it finds.

class ComplianceTest < ActiveSupport::TestCase
include Reeve::Testing::ComplianceAssertions
end

Host setup is two fixture principals with disjoint records and nothing else:

Reeve::Testing.compliance_principals = -> { [users(:alice), users(:bob)] }

One method per check, matching the RSpec shared example group one for one, so a red build names the guarantee that broke rather than reporting "compliance" as one undifferentiated failure.

Method Summary

Methods included from Assertions

#assert_audits_every_call, #assert_denies_access_for, #assert_no_cross_principal_leak, #assert_reeve_check, #assert_reeve_compliance