Module: ARLeftOverGuardian

Includes:
CustomContracts, Contracts
Defined in:
lib/ar_left_over_guardian.rb,
lib/ar_left_over_guardian/version.rb,
lib/ar_left_over_guardian/custom_contracts.rb

Overview

Fails your test suite if tests doesn't clean up any database records after itself. Assumes models have `.count` method.

Defined Under Namespace

Modules: CustomContracts Classes: DidntCleanup, Instance

Constant Summary collapse

VERSION =
"0.0.3"

Constants included from CustomContracts

CustomContracts::Model

Class Method Summary collapse

Class Method Details

.init(models) ⇒ Object


73
74
75
# File 'lib/ar_left_over_guardian.rb', line 73

def self.init(models)
  Instance.new(models)
end