diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-05-30 09:30:11 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-05-30 15:15:42 +0200 |
commit | 12697d2db48efcaca0554380aa502771bf9a71a3 (patch) | |
tree | 97e3186d9b576a97ba50d63f51c0a4a892b26df8 | |
parent | e4f449f547eb152812964eb9ab53f42c7be3ecb3 (diff) | |
download | gitlab-ce-bvl-fix-encoding-errors-when-validating-paths.tar.gz |
Adjust encoding helper spec to have real binary stringbvl-fix-encoding-errors-when-validating-paths
-rw-r--r-- | spec/lib/gitlab/git/encoding_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/git/encoding_helper_spec.rb b/spec/lib/gitlab/git/encoding_helper_spec.rb index 1a3bf802a07..48fc817d857 100644 --- a/spec/lib/gitlab/git/encoding_helper_spec.rb +++ b/spec/lib/gitlab/git/encoding_helper_spec.rb @@ -2,7 +2,7 @@ require "spec_helper" describe Gitlab::Git::EncodingHelper do let(:ext_class) { Class.new { extend Gitlab::Git::EncodingHelper } } - let(:binary_string) { File.join(SEED_STORAGE_PATH, 'gitlab_logo.png') } + let(:binary_string) { File.read(Rails.root + "spec/fixtures/dk.png") } describe '#encode!' do [ |