Path: | lib/test/spec.rb |
Last Update: | Wed Jul 02 12:18:36 +0200 2008 |
test/spec — a BDD interface for Test::Unit
Copyright (C) 2006, 2007, 2008 Christian Neukirchen <chneukirchen@gmail.com>
This work is licensed under the same terms as Ruby itself.
DisabledTestCase | = | Test::Spec::TestCase.dup).class_eval do alias :test_case_initialize :initialize |
specify | -> | test_case_specify |
# File lib/test/spec.rb, line 519 519: def initialize(*args, &block) 520: test_case_initialize(*args, &block) 521: @testcase.instance_eval do 522: alias :test_case_specify :specify 523: 524: def specify(specname, &block) 525: test_case_specify(specname) { @_result.add_disabled(specname) } 526: end 527: alias :it :specify 528: end 529: end