Skip to content

oleganza/literate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Literate programming for Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages