diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-06 11:18:30 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-06 11:18:30 +0000 |
commit | da359c46b598ba44cff1829ab4abe49c4c225ae2 (patch) | |
tree | 3e1a3c328f2f18304e7caa637f23c5807a1e57d9 /spec/support | |
parent | 572fb0be9b1d45437b7c0ed1000399657f471ec7 (diff) | |
parent | f5de8f159e9fb79ed523fcb41c4b062eeaf3f811 (diff) | |
download | gitlab-ce-da359c46b598ba44cff1829ab4abe49c4c225ae2.tar.gz |
Merge branch 'api-fix-files' into 'master'
API: Fix file downloading
See merge request !8953
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/matchers/match_file.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/matchers/match_file.rb b/spec/support/matchers/match_file.rb new file mode 100644 index 00000000000..d1888b3376a --- /dev/null +++ b/spec/support/matchers/match_file.rb @@ -0,0 +1,5 @@ +RSpec::Matchers.define :match_file do |expected| + match do |actual| + expect(Digest::MD5.hexdigest(actual)).to eq(Digest::MD5.hexdigest(File.read(expected))) + end +end |