Gem VersionBuild Status

Tanraku is Unit Test Library.

Rspec + tanraku = TestUnit

Installation

Add this line to your application's Gemfile:

gem 'tanraku'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tanraku

Usage

Using this library by require "tanraku" by Ruby and Ruby on Rails.

Class

・Tanraku::VERSION

・MyError( MyError , MyError1 , MyError2 , MyError3 ) , StandardError

・YouError( YouError , YouError1 , YouError2 , YouError3 ) , ScriptError

・WhoError( WhoError , WhoError1 ) , SignalException

・CatError( CatError , CatError1 ) , NoMemoryError

・DogError( DogError , DogError1 ) , SystemExit

・tanraku method + tanraku_log

Example

require "tanraku"

puts MyError.new
puts YouError.new
puts WhoError.new
puts CatError.new
puts DogError.new

class Sample
def Sample.ruby
puts "test"
end
end

Sample.ruby.tanraku.tanraku_log

See..output message!

tanraku.rb:95:in `initialize': wrong number of arguments (0 for 1) (ArgumentError)
tanraku.rb:95:in `new'
tanraku.rb:95:in `<main>'
MyError
YouError

PATH(Windows) Ver.Ruby-2.0.0

C:\Ruby200\lib\ruby\gems\2.0.0\gems\tanraku\win32

Let's add PATH.