Sha256: b514a685b8f2641961769dc155c96f49a43f1ab5a0924462257ac08e0f227229

Contents?: true

Size: 288 Bytes

Versions: 16

Compression:

Stored size: 288 Bytes

Contents

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

class String
  include Spec::Expectations::StringHelpers
end

class Symbol
  include Spec::Expectations::StringHelpers
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
puppet-0.23.0 test/lib/spec/expectations/extensions/string_and_symbol.rb
puppet-0.22.4 test/lib/spec/expectations/extensions/string_and_symbol.rb
puppet-0.23.1 test/lib/spec/expectations/extensions/string_and_symbol.rb
puppet-0.23.2 test/lib/spec/expectations/extensions/string_and_symbol.rb
riess-0.0.8 vendor/rspec-0.8.2/lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.8.0 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.8.1 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.9.1 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.9.2 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.9.3 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-1.0.0 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-1.0.1 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.8.2 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-1.0.2 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.9.4 lib/spec/expectations/extensions/string_and_symbol.rb
rspec-0.9.0 lib/spec/expectations/extensions/string_and_symbol.rb