Sha256: 2877bc8441eb94556bdb3f8ed6a10d533c07fba84b4624b02f62f37365a88317
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require "spec_helper" describe Timber::Events::Error do describe "#to_hash" do it "should jsonify the stacktrace" do backtrace = [ "/path/to/file1.rb:26:in `function1'", "path/to/file2.rb:86:in `function2'" ] exception_event = described_class.new(name: "RuntimeError", error_message: "Boom", backtrace: backtrace) expect(exception_event.backtrace_json).to eq("[\"/path/to/file1.rb:26:in `function1'\",\"path/to/file2.rb:86:in `function2'\"]") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timber-3.0.1 | spec/timber/events/error_spec.rb |
timber-3.0.0 | spec/timber/events/error_spec.rb |