Sha256: 24615f8f956f6a42f7d3f9a41de027fdbcc14f023c69b8c225cf32786319926f
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
require 'spec_helper' describe "API Bindings" do before :all do @client = authorized_paysio_client end it "should not fetch from network while creating a new Resource" do @client.expects(:get).never Paysio::Charge.new("someid") end it "should add redirect url to resource from location" do @client.expects(:get).once.returns(test_response(test_charge, 200, 'http://example.com')) Paysio::Charge.retrieve("someid").redirect == 'http://example.com' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paysio-1.0.5 | spec/requests/base_spec.rb |
paysio-1.0.4 | spec/requests/base_spec.rb |