(t *testing.T)
| 1027 | } |
| 1028 | |
| 1029 | func TestDescriptionFullStop_NoStop_Pass(t *testing.T) { |
| 1030 | r := &rule.DescriptionFullStopRule{} |
| 1031 | if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil { |
| 1032 | t.Fatal(err) |
| 1033 | } |
| 1034 | _, ok := r.Validate(&mockCommit{description: "add new feature"}) |
| 1035 | if !ok { |
| 1036 | t.Error("description not ending with '.' should pass") |
| 1037 | } |
| 1038 | } |
| 1039 | |
| 1040 | func TestDescriptionFullStop_WithStop_Fail(t *testing.T) { |
| 1041 | r := &rule.DescriptionFullStopRule{} |