# File lib/spec/interop/test/unit/testcase.rb, line 44 def initialize(defined_description, options={}, &implementation) @_defined_description = defined_description # TODO - examples fail in rspec-rails if we remove "|| pending_implementation" # - find a way to fail without it in rspec's code examples @_implementation = implementation || pending_implementation @_result = ::Test::Unit::TestResult.new # @method_name is important to set here because it complies with Test::Unit's interface. # Some Test::Unit extensions depend on @method_name being present. @method_name = @_defined_description # TODO - this is necessary to run single examples in rspec-rails, but I haven't # found a good way to write a failing example just within rspec core @_backtrace = caller end