Sha256: 190839d575ea61512f0e5e58587f17fd31040094635c10e2bbaa20695060e775
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
Feature: Building ProtoBufs Scenario: I can create a blank protocol buffer Given I create a ProtoBuf of type "Sample" When I get the ProtoBuf Then the ProtoBuf should not have "string_field" Then the ProtoBuf should not have "int_field" Then the ProtoBuf should not have "double_field" Scenario: I can set values of the protocol buffer Given I create a ProtoBuf of type "Sample" And I set the ProtoBuf at "string_field" to "hello" And I set the ProtoBuf at "int_field" to -5 And I set the ProtoBuf at "double_field" to 123.45 When I get the ProtoBuf Then the ProtoBuf at "string_field" should be "hello" And the ProtoBuf at "int_field" should be -5 And the ProtoBuf at "double_field" should be 123.45 Scenario: I can create a protobuf with a json description Given I create the following ProtoBuf of type "Sample": """ { "string_field": "foo", "int_field": 5, "double_field": 50.23, "int_field_2": -9 } """ When I get the ProtoBuf Then the ProtoBuf at "string_field" should be "foo" And the ProtoBuf at "int_field" should be 5 And the ProtoBuf at "double_field" should be 50.23 And the ProtoBuf at "int_field_2" should be -9
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protobuf_spec-0.3.1 | features/builder.feature |