Sha256: fe11aff2b7a029690f9b5a08a7e262df407c87affdbd4740babf9e4ae6115d53
Contents?: true
Size: 512 Bytes
Versions: 29
Compression:
Stored size: 512 Bytes
Contents
require 'spec_helper' class EncoderTest extend ::Protobuf::Encoder end describe Protobuf::Encoder do describe '#encode' do context "when there's no value for a required field" do let(:message) { ::Test::Resource.new } let(:stream) { StringIO.new } it "raises a 'message not initialized' error" do expect { EncoderTest.__send__(:encode, stream, message) }.to raise_error(Protobuf::NotInitializedError, /message.*not initialized/i) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems