Skip to content

Instantly share code, notes, and snippets.

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
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