Skip to content
Snippets Groups Projects
Commit 5ffec2c9 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Freeze the expression instead of the literal

Also remove the spec for it
parent be339986
No related branches found
No related tags found
No related merge requests found
module Gitlab module Gitlab
module Git module Git
# '0' * 40 -- this was easyer to freeze BLANK_SHA = ('0' * 40).freeze
BLANK_SHA = "0000000000000000000000000000000000000000".freeze
TAG_REF_PREFIX = "refs/tags/".freeze TAG_REF_PREFIX = "refs/tags/".freeze
BRANCH_REF_PREFIX = "refs/heads/".freeze BRANCH_REF_PREFIX = "refs/heads/".freeze
   
Loading
Loading
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment