This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
literate /
| name | age | message | |
|---|---|---|---|
| |
README | Mon Jun 16 06:14:19 -0700 2008 | [oleganza] |
| |
TODO | Mon Jun 16 06:32:36 -0700 2008 | [oleganza] |
| |
examples/ | Mon Jun 16 06:04:59 -0700 2008 | [oleganza] |
| |
lib/ | Mon Jun 16 06:08:06 -0700 2008 | [oleganza] |
README
Literate is an engine for inline specs (tests) in your Ruby code.
EXAMPLE
spec "Box says custom message when instantiated with an argument" do
Box.new("Hi!").say.should == "Hi!"
end
class Box
def initialize(msg = "Hello, world!")
@msg = msg
end
def say
@msg.freeze
end
end
See & run more examples in the /examples folder.
HOW TO RUN
Literate is tested with itself. Pretty cool, huh?
Simply run `ruby lib/literate.rb` to test the engine.
AUTHOR
Oleg Andreev, oleganza@gmail.com




