Update test xml and mocks to match real API
This commit is contained in:
parent
95dea2c6f3
commit
deadc2fd68
|
|
@ -136,9 +136,7 @@ describe 'Subscription transactions sync' do
|
||||||
Recurly::Subscription.new
|
Recurly::Subscription.new
|
||||||
])
|
])
|
||||||
|
|
||||||
Recurly::Subscription.any_instance.stub(:plan).and_return([
|
Recurly::Subscription.any_instance.stub(:plan).and_return(Recurly::Plan.new(plan_code: "jamsubgold"))
|
||||||
Recurly::Plan.new(plan_code: "jamsubgold")
|
|
||||||
])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates AffiliateDistribution records for successful recurring transactions" do
|
it "creates AffiliateDistribution records for successful recurring transactions" do
|
||||||
|
|
@ -243,7 +241,7 @@ def transaction_response_xml(user)
|
||||||
<status>success</status>
|
<status>success</status>
|
||||||
<payment_method>credit_card</payment_method>
|
<payment_method>credit_card</payment_method>
|
||||||
<reference>2216615</reference>
|
<reference>2216615</reference>
|
||||||
<source>transaction</source>
|
<source>subscription</source>
|
||||||
<recurring type="boolean">true</recurring>
|
<recurring type="boolean">true</recurring>
|
||||||
<test type="boolean">true</test>
|
<test type="boolean">true</test>
|
||||||
<voidable type="boolean">true</voidable>
|
<voidable type="boolean">true</voidable>
|
||||||
|
|
@ -296,7 +294,7 @@ def transaction_response_xml(user)
|
||||||
<status>success</status>
|
<status>success</status>
|
||||||
<payment_method>credit_card</payment_method>
|
<payment_method>credit_card</payment_method>
|
||||||
<reference>2216615</reference>
|
<reference>2216615</reference>
|
||||||
<source>transaction</source>
|
<source>subscription</source>
|
||||||
<recurring type="boolean">true</recurring>
|
<recurring type="boolean">true</recurring>
|
||||||
<test type="boolean">true</test>
|
<test type="boolean">true</test>
|
||||||
<voidable type="boolean">true</voidable>
|
<voidable type="boolean">true</voidable>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue