spec/timber/events/error_spec.rb in timber-2.6.2 vs spec/timber/events/error_spec.rb in timber-3.0.0
- old
+ new
@@ -1,20 +1,15 @@
require "spec_helper"
-describe Timber::Events::Error, :rails_23 => true do
+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)
- expected_hash = {
- :name => "RuntimeError",
- :message => "Boom",
- :backtrace_json => "[\"/path/to/file1.rb:26:in `function1'\",\"path/to/file2.rb:86:in `function2'\"]"
- }
- expect(exception_event.to_hash).to eq(expected_hash)
+ 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
\ No newline at end of file
+end