Sha256: 4f2b8117a326624cf5cc87e60f450fbd754c517b43ff88aadf4426d455ce7f08
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' describe GroupDocs::Api::Helpers::ByteFlag do subject do GroupDocs::User.new end let(:value_to_byte) { GroupDocs::Api::Helpers::AccessRights::ACCESS_RIGHTS } describe '#byte_from_array' do it 'returns correct byte flag' do values = value_to_byte.map { |k, _| k } subject.byte_from_array(values, value_to_byte).should == 46 end end describe '#array_from_byte' do it 'returns correct byte flag' do values = subject.array_from_byte(46, value_to_byte) values.should =~ value_to_byte.map { |k, _| k } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
groupdocs-2.3.0 | spec/groupdocs/api/helpers/byte_flag_helper_spec.rb |