spec/diagnostics_spec.rb in diagnostics-0.0.2 vs spec/diagnostics_spec.rb in diagnostics-0.0.3
- old
+ new
@@ -6,6 +6,19 @@
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
\ No newline at end of file