Sha256: 433e80c1fade15c10733e4da4115926df3eb8c9f50e281c581d3cf3214eb993e
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require 'spec_helper' describe ProtobufSpec::Matchers::BeProtobufEql do before(:each) do @sample = Sample.new @sample.string_field="foo" end it "matches identical JSON" do @sample.should be_protobuf_eql(%({"string_field":"foo"})) end it "matches at a path" do @sample.should be_protobuf_eql(%("foo")).at_path("string_field") end it "doesn't match at a path" do @sample.should_not be_protobuf_eql(%("bar")).at_path("string_field") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
protobuf_spec-0.3.2 | spec/protobuf_spec/matchers/be_protobuf_eql_spec.rb |
protobuf_spec-0.3.1 | spec/protobuf_spec/matchers/be_protobuf_eql_spec.rb |