summaryrefslogtreecommitdiff
path: root/spec/support/matchers/eq_pem.rb
blob: 158281e4a19ee885a0008175486329122e9c04ae (plain)
1
2
3
4
5
6
7
8
9
10
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