Path: | lib/test/spec.rb |
Last Update: | Sun Feb 01 11:38:30 +0100 2009 |
test/spec — a BDD interface for Test::Unit
Copyright (C) 2006, 2007, 2008, 2009 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 521 521: def initialize(*args, &block) 522: test_case_initialize(*args, &block) 523: @testcase.instance_eval do 524: alias :test_case_specify :specify 525: 526: def specify(specname, &block) 527: test_case_specify(specname) { @_result.add_disabled(specname) } 528: end 529: alias :it :specify 530: end 531: end