Sha256: 199aff53c35ebf290519daed62379c7f66a0118b8ecee922a3733c5e86bc59de

Contents?: true

Size: 298 Bytes

Versions: 2

Compression:

Stored size: 298 Bytes

Contents

module Spec
  module Expectations
    module StringHelpers
      def starts_with?(prefix)
        to_s[0..(prefix.to_s.length - 1)] == prefix.to_s
      end
    end
  end
end

class String
  include Spec::Expectations::StringHelpers
end

class Symbol
  include Spec::Expectations::StringHelpers
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-1.0.3 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-1.0.4 lib/spec/expectations/extensions/string_and_symbol.rb