This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def define(label, &block) | |
if block_given? | |
definition = capture(&block) | |
else | |
definition = label.first.last | |
label = label.first.first | |
end | |
content = markaby do | |
dt label.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should require login of minimum 4 chars" do | |
identity = new_identity(:login => "one") | |
identity.should_not be_valid | |
identity.errors.on(:login).should_not be_nil | |
end |
NewerOlder