spec/lib/leetchi/recurrent_contribution_spec.rb in leetchi-wallet-services-0.0.1 vs spec/lib/leetchi/recurrent_contribution_spec.rb in leetchi-wallet-services-1.0.0
- old
+ new
@@ -1,48 +1,48 @@
-require_relative '../../spec_helper'
+# require_relative '../../spec_helper'
-describe Leetchi::RecurrentContribution do
+# describe Leetchi::RecurrentContribution do
- let(:new_user) {
- Leetchi::User.create({
- 'Tag' => 'test',
- 'Email' => 'my@email.com',
- 'FirstName' => 'John',
- 'LastName' => 'Doe',
- 'CanRegisterMeanOfPayment' => true
- })
- }
+# let(:new_user) {
+# Leetchi::User.create({
+# 'Tag' => 'test',
+# 'Email' => 'my@email.com',
+# 'FirstName' => 'John',
+# 'LastName' => 'Doe',
+# 'CanRegisterMeanOfPayment' => true
+# })
+# }
- let(:new_recurrent_contribution) {
- Leetchi::RecurrentContribution.create({
- 'Tag' => 'test-recurrent-contribution',
- 'UserID' => new_user['ID'],
- 'WalletID' => 0,
- 'Amount' => 4200,
- 'StartDate' => '1388534400',
- 'FrequencyCode' => 'TwiceMonthly',
- 'NumberOfExecutions' => 10,
- 'ReturnURL' => 'http://leetchi.com'
- })
- }
+# let(:new_recurrent_contribution) {
+# Leetchi::RecurrentContribution.create({
+# 'Tag' => 'test-recurrent-contribution',
+# 'UserID' => new_user['ID'],
+# 'WalletID' => 0,
+# 'Amount' => 4200,
+# 'StartDate' => '1388534400',
+# 'FrequencyCode' => 'TwiceMonthly',
+# 'NumberOfExecutions' => 10,
+# 'ReturnURL' => 'http://leetchi.com'
+# })
+# }
- before do
- VCR.insert_cassette 'recurrent_contribution', :record => :new_episodes
- end
- after do
- VCR.eject_cassette
- end
+# before do
+# VCR.insert_cassette 'recurrent_contribution', :record => :new_episodes
+# end
+# after do
+# VCR.eject_cassette
+# end
- describe "CREATE" do
- it "create a new recurrent contribution and return a PaymentURL" do
- new_recurrent_contribution['PaymentURL'].wont_be_empty
- end
- end
+# describe "CREATE" do
+# it "create a new recurrent contribution and return a PaymentURL" do
+# new_recurrent_contribution['PaymentURL'].wont_be_empty
+# end
+# end
- describe "GET" do
- it "get a recurrent contribution" do
- recurrent_contribution = Leetchi::RecurrentContribution.get(new_recurrent_contribution["ID"])
- recurrent_contribution["ID"].must_equal new_recurrent_contribution["ID"]
- end
- end
+# describe "GET" do
+# it "get a recurrent contribution" do
+# recurrent_contribution = Leetchi::RecurrentContribution.get(new_recurrent_contribution["ID"])
+# recurrent_contribution["ID"].must_equal new_recurrent_contribution["ID"]
+# end
+# end
-end
+# end