Sha256: 19382f842d6132ff6e768ccc8ed347819fbf50f6fd7211644e33611cc56a06f4

Contents?: true

Size: 694 Bytes

Versions: 13

Compression:

Stored size: 694 Bytes

Contents

##############################################################################
#                               Stripe Plugin
##############################################################################

begin
  require 'stripe'

  RSpec.configure do |config|
    config.after(:suite, :stripe) do
      VCR.turn_off!               if defined?(VCR)
      WebMock.allow_net_connect!  if defined?(WebMock)

      Stripe::Plan.all(:count => 100).each do |plan|
        if plan.id.match(/test/i) || plan.name.match(/test/i)
          plan.delete
        end
      end

      Stripe::Customer.all(:count => 100).each(&:delete)

      VCR.turn_on! if defined?(VCR)
    end
  end
rescue LoadError
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspectacular-0.33.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.31.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.30.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.29.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.28.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.27.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.26.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.25.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.24.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.23.1 lib/rspectacular/plugins/stripe.rb
rspectacular-0.23.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.22.2 lib/rspectacular/plugins/stripe.rb
rspectacular-0.22.1 lib/rspectacular/plugins/stripe.rb