Sha256: e1029bb75b56fe37e4d25cf3e2533004837ca56aaddef32f95615aef102a5500
Contents?: true
Size: 568 Bytes
Versions: 14
Compression:
Stored size: 568 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'}, ['B', 'A']).should == '004bbbb003aaa' end end end
Version data entries
14 entries across 14 versions & 1 rubygems