Sha256: 40deab27c8a4285243927c5146ecd38715c1d4670af556831659ff06025cf519
Contents?: true
Size: 815 Bytes
Versions: 37
Compression:
Stored size: 815 Bytes
Contents
require 'spec_helper' describe Stellar::AccountFlags do subject{ Stellar::AccountFlags } let(:raw) { 3 } let(:result) { subject.parse_mask raw } it "parses correctly" do expect(subject.parse_mask(1)).to eq([Stellar::AccountFlags.auth_required_flag]) expect(subject.parse_mask(2)).to eq([Stellar::AccountFlags.auth_revocable_flag]) expect(subject.parse_mask(3)).to eq([Stellar::AccountFlags.auth_required_flag, Stellar::AccountFlags.auth_revocable_flag]) end it "makes correctly" do expect(subject.make_mask([Stellar::AccountFlags.auth_required_flag])).to eq(1) expect(subject.make_mask([Stellar::AccountFlags.auth_revocable_flag])).to eq(2) expect(subject.make_mask([Stellar::AccountFlags.auth_required_flag, Stellar::AccountFlags.auth_revocable_flag])).to eq(3) end end
Version data entries
37 entries across 37 versions & 3 rubygems