Sha256: 767169415b551ca0c96f2ceec5809882bdc00548c8fc2d9771520143f24240df

Contents?: true

Size: 700 Bytes

Versions: 13

Compression:

Stored size: 700 Bytes

Contents

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

begin
  require 'stripe'

  RSpec.configure do |config|
    config.after(:all, :stripe => true) 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.46.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.45.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.44.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.43.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.42.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.41.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.40.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.39.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.38.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.37.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.36.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.35.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.34.0 lib/rspectacular/plugins/stripe.rb