Commit ac9b0a43c281cc24f21a0bc62fd3bf263031f7be

Authored by Stephen Crosby
1 parent 8c60eb54
Exists in master and in 1 other branch production

remove the line normalizer

This seems to be a display concern. Anything related to displaying
backtrace lines for the UI now lives in BacktraceLineDecorator.
Showing 1 changed file with 0 additions and 25 deletions   Show diff stats
spec/models/backtrace_line_normalizer_spec.rb
... ... @@ -1,25 +0,0 @@
1   -describe BacktraceLineNormalizer, type: 'model' do
2   - subject { described_class.new(raw_line).call }
3   -
4   - describe "sanitize" do
5   - context "unknown file and method" do
6   - let(:raw_line) { { 'number' => rand(999), 'file' => nil, 'method' => nil } }
7   -
8   - it "should replace nil file with [unknown source]" do
9   - expect(subject['file']).to eq "[unknown source]"
10   - end
11   -
12   - it "should replace nil method with [unknown method]" do
13   - expect(subject['method']).to eq "[unknown method]"
14   - end
15   - end
16   -
17   - context "in app file" do
18   - let(:raw_line) { { 'number' => rand(999), 'file' => "[PROJECT_ROOT]/assets/file.js?body=1", 'method' => nil } }
19   -
20   - it "should strip query strings from files" do
21   - expect(subject['file']).to eq "[PROJECT_ROOT]/assets/file.js"
22   - end
23   - end
24   - end
25   -end