Sha256: 1ef00b0f64c0df5fda8597b23991988b98c4294a4411f806e451b6dde4048666
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
require 'spec_helper' describe Diagnostics do describe '.checks' do it 'defaults to an empty array' do described_class.checks.should eq([]) end end end describe DiagnosticsCheck do describe '.included' do before { diagnostic_checks.should be_empty } it 'adds the class to checks' do class MyCheck; include DiagnosticsCheck end diagnostic_checks.should have(1).check end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
diagnostics-0.0.4 | spec/diagnostics_spec.rb |
diagnostics-0.0.3 | spec/diagnostics_spec.rb |