rbell/SpecExpress — pull request #1 by danielcrenna (2012-01-11 16:28:21+00:00)
Title: Custom rule labels

Hey,

Where we're using this project, we need to be able to label each rule in a Validates specification, so that we can display them in a human-readable way when we run them, store their results in a database, etc. After looking through the project I found what I thought was the best place to add this feature since the label would apply to the whole description of the rule vs. each rule that the 'Check' consists of. It's technically not a condition as the name of the class implies, but it "works" with the rest of the DSL and allows you to pair it with an "If" clause. I also added a standard .gitignore file as it appears you didn't have one.

Daniel