Sha256: 926f8e08d3179d6a6e4998aef3a1d28ef4b85e990af474a928cd521277f54e62
Contents?: true
Size: 698 Bytes
Versions: 29
Compression:
Stored size: 698 Bytes
Contents
module Spec module Matchers module SpecExtensions class HaveSshkey < SpecExtensionsBase def initialize(expected,extra="") @expected = expected @extra = extra end def matches?(target) @target = target is_present? end def failure_message "expected #{@target.inspect} to have sshkey #{@expected}" end def negative_failure_message "expected #{@target.inspect} not to have sshkey #{@expected}" end def type "sshkey" end end end def have_sshkey(name, extra="") SpecExtensions::HaveSshkey.new(name, extra) end end end
Version data entries
29 entries across 29 versions & 3 rubygems