Sha256: c9aa85f19f697f60cd9840cc271ecf3a9e8d6c744d9973835df12faaccf3abb2

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

require_relative File.join '..', 'helper_test'

module Spectus
  module Matcher
    class StartWith
      def initialize expected
        @expected = expected
      end

      def matches?
        Regexp.new("^#{@expected}").match(yield) != nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spectus-1.1.1 test/spectus/matcher/custom/start_with/helper_test.rb
spectus-1.0.1 test/spectus/matcher/custom/start_with/helper_test.rb
spectus-1.0.0 test/spectus/matcher/custom/start_with/helper_test.rb
spectus-1.0.0.pre test/spectus/matcher/custom/start_with/helper_test.rb