Commit 5ffec2c9 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Freeze the expression instead of the literal

Also remove the spec for it
parent be339986
module Gitlab
module Git
# '0' * 40 -- this was easyer to freeze
BLANK_SHA = "0000000000000000000000000000000000000000".freeze
BLANK_SHA = ('0' * 40).freeze
TAG_REF_PREFIX = "refs/tags/".freeze
BRANCH_REF_PREFIX = "refs/heads/".freeze
......
require 'spec_helper'
describe Gitlab::Git do
describe "BLANK_SHA" do
it "is a string of 40 zero's" do
expect(Gitlab::Git::BLANK_SHA).to eq('0' * 40)
end
end
end
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