Sha256: 711b66b07579c3116e62e098cce2bc5f00974e0482d31c18de9c6b09964b4116
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require "spec_helper" describe Datatrans::Common do context "sign" do before do # class Request # include Datatrans::Common # end @request = Datatrans::XML::Transaction::Request.new(@datatrans, {}) end it "generates the correct sign" do amount = 1000 currency = "CHF" reference_number = "ABCEDF" expect(@request.sign(@datatrans.merchant_id, amount, currency, reference_number)).to eq "4e7d4d5bbde548c586f3b7f109635ffc" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datatrans-5.2.0 | spec/common_spec.rb |