Delicious is a project mainly written in Ruby, it's free.
Testing tasting teliciously. Seriously, always less but funny.
Well, delicious
is just yet another take on a testing framework
(dare to call it one!) that doesn't make all the stuff non-funny.
First things first, here you go:
it has:
child steps:
But it's fun, anyway :)
Here's the code (always first)
describe HappilyAfter do
it "is a Happy Ending" do
true.must.be true
end
it "is something" do
# @topic is the class you're describing
@topic.is_a?(Class).must.be.true
end
it "is not so smart by now" do
false.should.be true # again, ouch!
true.should.be true
end
end
Of course there should be less issues and more fun to it, but for now the testsuite should be longer than the actual code and I should have fun with it.
You're invited, too, so join the party!
So there was/is Test::Unit, and MiniTest. But they just seem not to match my kind of way. So, along the way (of course not testing/spec'ing anything) I read a little bit about RSpec and even a little bit of Cucumber, recently, but RSpec wants to have install 3 gems just to make feel a little safer and Cucumber even more (I suppose) and it just feels not-at-home.
And I somehow tend to want to write everything just by myself and now,
here is my little (very few lines) only spec testing thing.
It's not even a gem
by now, but it does do a few things I like:
should
( and should.not
and should.be
and so.on
)1