Commit f429a096 authored by Gary Holtz's avatar Gary Holtz

Correcting spec string

parent 4679c209
...@@ -15,6 +15,7 @@ module Gitlab ...@@ -15,6 +15,7 @@ module Gitlab
return false unless size.to_i > file_size_limit return false unless size.to_i > file_size_limit
puts "HEY #{file_size_limit}"
over_highlight_size_limit.increment(source: "file size: #{file_size_limit}") if Feature.enabled?(:track_file_size_over_highlight_limit) over_highlight_size_limit.increment(source: "file size: #{file_size_limit}") if Feature.enabled?(:track_file_size_over_highlight_limit)
true true
......
...@@ -54,7 +54,7 @@ RSpec.describe Gitlab::Highlight do ...@@ -54,7 +54,7 @@ RSpec.describe Gitlab::Highlight do
end end
it 'increments the metric for oversized files' do it 'increments the metric for oversized files' do
expect { result }.to change { over_highlight_size_limit('text highlighter') }.by(1) expect { result }.to change { over_highlight_size_limit('file size: 0.0001') }.by(1)
end end
it 'returns plain version for long content' do it 'returns plain version for long content' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment