Sha256: 0921a7eb9dddc947f7ab88ff416d934c4bfbb9051df5df251fbf2719954a81b8
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
module ProtobufSpec module Matchers class HaveProtobufPath attr_reader :path def initialize path @path = path @json_matcher = JsonSpec::Matchers::HaveJsonPath.new path end def matches? proto @json_matcher.matches? proto.to_json end def failure_message_for_should %(Expected Protobuf path "#{@path}") end def failure_message_for_should_not %(Expected no Protobuf path "#{@path}") end def description %(have Protobuf path "#{@path}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
protobuf_spec-0.3.2 | lib/protobuf_spec/matchers/have_protobuf_path.rb |
protobuf_spec-0.3.1 | lib/protobuf_spec/matchers/have_protobuf_path.rb |