Sha256: 44d2b95843c846f7cce2ab79cde579d08298a68b226d2981e37dd8221242d90a
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 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) { ::Spec::Proto::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
6 entries across 6 versions & 1 rubygems