This repository has been archived by the owner. It is now read-only.
Put your tests right inline with your code. Like rdoc for testing.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
Gemfile.lock
README.rdoc
Rakefile
example.rb
test_inline.gemspec

README.rdoc

WARNING

ONLY use if you like to experiment. Who knows if this is a good idea :)

PURPOSE

The basic goal of this library is to allow you put your test right next to the code being tested. For example:

def multiply(a, b)
  a * b
end

Test do
  assert_equal 6, multiply(2, 3)
  assert_equal 10, multiply(5, 10)
  assert_not_equal 42, multiply(6, 9)
end

We also offer nice Rails integration so you can use it in your apps. Only Rails 3 is supported. If you need Rails 2.x support see version 0.7 of the gem or less.

See wiki.github.com/eric1234/test_inline/ for more info about this project.

CREDIT