Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.322 kB
require File.expand_path('../../../spec_helper', __FILE__)
describe "Redefining #bactrace on an instance of Exception" do
it "does not affect the behaviour of Exception#message" do
e = Exception.new
e.message.should == 'Exception'
def e.backtrace; []; end
e.message.should == 'Exception'
end
end
Jump to Line
Something went wrong with that request. Please try again.