# minispec## Very minimal set of features to support specs like this:## describe "Array" do# it "should respond to new" do# Array.new.should == []# end# endclassPostiveSpecdefinitialize(obj)@obj= obj
enddef==(other)if@obj!= other
raiseException.new("equality expected")
endendendclassNegativeSpecdefinitialize(obj)@obj= obj
enddef==(other)if@obj== other
raiseException.new("inequality expected")
endendendclassObjectdefshouldPostiveSpec.new(self)
enddefshould_notNegativeSpec.new(self)
endenddefit(msg)
print '.'beginyieldrescueException => e
print msg
print " FAILED\n"
print e.message
print "\n"endenddefdescribe(msg)yieldend