Sha256: cccc5aef5958c9d53af723ec0de15615ea9e54d98508b91572cee0e3aa7370f5
Contents?: true
Size: 786 Bytes
Versions: 4
Compression:
Stored size: 786 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Ipizza::Util do describe 'sign' do end describe '.verify_signature' do end describe '.sign_731' do it 'should add control number to the end of input string' do Ipizza::Util.sign_731('12').should == '123' end end describe '.mac_data_string' do it 'should compose mac string containing the values and their respective lengths' do Ipizza::Util.mac_data_string({'A' => 'aaa', 'B' => 'bbbb'}, %w(B A)).should == '004bbbb003aaa' end it 'should compose mac string containing the values and their respective lengths for UTF strings' do Ipizza::Util.mac_data_string({'A' => 'õäu', 'B' => 'Žaaa'}, %w(B A)).should == '004Žaaa003õäu' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ipizza-2.2.0 | spec/ipizza/util_spec.rb |
ipizza-2.1.0 | spec/ipizza/util_spec.rb |
ipizza-2.0.1 | spec/ipizza/util_spec.rb |
ipizza-2.0.0 | spec/ipizza/util_spec.rb |