Sha256: f0614a2b8964f19e1cab097db2c3eb72aca8a4003cdf21e7b5526a1ce25456fb
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 Bytes
Contents
module Serverspec::Type class Base def initialize(name=nil) @name = name @runner = Specinfra::Runner end def to_s type = self.class.name.split(':')[-1] type.gsub!(/([a-z\d])([A-Z])/, '\1 \2') type.capitalize! %Q!#{type} "#{@name}"! end def inspect if defined?(PowerAssert) @inspection else to_s end end def to_ary to_s.split(" ") end end end
Version data entries
6 entries across 6 versions & 1 rubygems