spec.rb

Path: lib/test/spec.rb
Last Update: Wed Jul 02 11:25:07 +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.

Required files

test/unit   test/spec/version  

Methods

it   new   specify  

Constants

DisabledTestCase = Test::Spec::TestCase.dup).class_eval do alias :test_case_initialize :initialize

External Aliases

specify -> test_case_specify

Public Class methods

[Source]

     # 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

Public Instance methods

it(specname, &block)

Alias for specify

[Source]

     # File lib/test/spec.rb, line 524
524:       def specify(specname, &block)
525:         test_case_specify(specname) { @_result.add_disabled(specname) }
526:       end

[Validate]