Sha256: 8402462caf9cc839f25fd9b0ee4758536a3c0e9b8cb1430ae5c5ea6725ff78c5
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
require "spec_helper" describe Paymill::Request::Base do context "#perform" do it "performs an https request" do Paymill.stub(:api_key).and_return("some key") connection = double validator = double Paymill::Request::Connection.stub(:new).and_return(connection) Paymill::Request::Validator.stub(:new).and_return(validator) connection.should_receive(:setup_https) connection.should_receive(:request) validator.should_receive(:validated_data_for) Paymill::Request::Base.new(nil).perform end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paymill-0.5.1 | spec/paymill/request/base_spec.rb |
paymill-0.5.0 | spec/paymill/request/base_spec.rb |