summaryrefslogtreecommitdiff
path: root/spec/support/matchers/match_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/match_file.rb')
-rw-r--r--spec/support/matchers/match_file.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/matchers/match_file.rb b/spec/support/matchers/match_file.rb
index d1888b3376a..4e522b52912 100644
--- a/spec/support/matchers/match_file.rb
+++ b/spec/support/matchers/match_file.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
RSpec::Matchers.define :match_file do |expected|
match do |actual|
expect(Digest::MD5.hexdigest(actual)).to eq(Digest::MD5.hexdigest(File.read(expected)))