Sha256: 75080e22f61fa6bf01cfded1637652ca143d6407fee40c2ca494f0a87a1f2551
Contents?: true
Size: 892 Bytes
Versions: 16
Compression:
Stored size: 892 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'rspec', 'instafail')) describe 'x' do it 'fails logically' do 1.should == 2 end it 'b' do end it 'c' do end it 'pends' do pending raise end it 'raises a simple error' do raise 'shallow failure' end it 'raises a hidden error' do error = ExceptionWrappingException.new('There is an error in this error.') error.original_exception = RuntimeError.new('There is no error in this error.') raise error end it 'e' do end context "ancestors" do after do puts "ANCESTORS:#{example.example_group.ancestors.size}" end it "does not add ancestors on failure" do raise "BAM" end it "does not add ancestors on failure" do end end end class ExceptionWrappingException < RuntimeError attr_accessor :original_exception end
Version data entries
16 entries across 11 versions & 3 rubygems