Sha256: c51d59f651f59d5b1157945cc7323932f76f81a862590a1d89a45dee5afdd60c

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper'
require 'spec/proto/test.pb'

describe Protobuf::Enum do
  context 'when coercing from enum' do
    subject { Spec::Proto::StatusType::PENDING }
    it { should == 0 }
  end
  context 'when coercing from integer' do
    subject { 0 }
    it { should == Spec::Proto::StatusType::PENDING }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protobuf-1.0.1 spec/unit/enum_spec.rb
protobuf-1.0.0 spec/unit/enum_spec.rb