Sha256: b9ab4b5953859de068f90cb0ddeb949f4688159d15fe5b9fa195301fb0fab951
Contents?: true
Size: 721 Bytes
Versions: 13
Compression:
Stored size: 721 Bytes
Contents
require 'RubyExt/require' require 'spec' module RubyExt describe 'Kernel' do it "raise_without_self" do begin ForKernel::RaiseWithoutSelf.new.test rescue RuntimeError => e stack = e.backtrace stack.any?{|line| line =~ /RaiseWithoutSelf/}.should be_false stack.any?{|line| line =~ /kernel_spec/}.should be_true end end it "raise_without_self" do begin t1 = ForKernel::RaiseWithoutSelf.new ForKernel::Raise2.new.test t1 rescue RuntimeError => e stack = e.backtrace stack.any?{|line| line =~ /RaiseWithoutSelf/}.should be_false stack.any?{|line| line =~ /Raise2/}.should be_false stack.any?{|line| line =~ /kernel_spec/}.should be_true end end end end
Version data entries
13 entries across 13 versions & 1 rubygems