diff options
Diffstat (limited to 'spec/support/matchers/eq_pem.rb')
-rw-r--r-- | spec/support/matchers/eq_pem.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/matchers/eq_pem.rb b/spec/support/matchers/eq_pem.rb new file mode 100644 index 00000000000..158281e4a19 --- /dev/null +++ b/spec/support/matchers/eq_pem.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +RSpec::Matchers.define :eq_pem do |expected_pem_string| + match do |actual| + actual.to_pem == expected_pem_string + end + + description do + "contain pem #{expected_pem_string}" + end +end |