Sha256: eb6eec9a16a654e4feed33508d542c05c00f4b94a36b20eb37c2cedc55fdb4b4
Contents?: true
Size: 858 Bytes
Versions: 2
Compression:
Stored size: 858 Bytes
Contents
require "spec_helper" include Fastbill::Automatic describe Fastbill::Automatic do context "delivery method is :test" do before do Fastbill::Automatic.request_method = :test end after do Fastbill::Automatic.request_method = :https end it "must not perform the actual request" do Request::Base.any_instance.should_not_receive(:perform) do Fastbill::Automatic.request('subscription.usage', {}) end end it "must store the request" do Fastbill::Automatic.request('service.request', {number: 'one'}) Fastbill::Automatic.request('service.request', {number: 'two'}) Fastbill::Automatic::Base.request_infos.should eq [ Request::Info.new('service.request', number: 'one'), Request::Info.new('service.request', number: 'two') ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastbill-automatic-0.0.4 | spec/fastbill-automatic/base_spec.rb |
fastbill-automatic-0.0.3 | spec/fastbill-automatic/base_spec.rb |