require 'spec/spec_helper' describe CloudQuery::X64 do describe '.encode' do # Built with the expectation of parity with the Python equivalent. it "should return expected values from strings" do CloudQuery::X64.encode('test').should == 'kaEPwp57SCnwfTIcBa8vIq' end it "should return expected values from integers" do CloudQuery::X64.encode(111).should == 'k........0j' end end end