Dynamically load rule documentation

This commit is contained in:
Vitalii Elenhaupt 2018-12-08 22:52:32 +02:00
parent f8dab3bc34
commit 20938da89a
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
3 changed files with 57 additions and 0 deletions

View file

@ -67,5 +67,11 @@ module Ameba::Rule
rule.excluded?(Source.new "", "source.cr").should be_false
end
end
describe ".parsed_doc" do
it "returns the parsed rule doc" do
DummyRule.parsed_doc.should eq "Dummy Rule which does nothing."
end
end
end
end