Sha256: b8e70e3f9cc53210263e4cc00bec2f533f712969d38059d4a14f264956ee8a08

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

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

begin
  require 'stripe'

  RSpec.configure do |config|
    config.after(:suite, :stripe) do
      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)
    end
  end
rescue LoadError
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspectacular-0.22.0 lib/rspectacular/plugins/stripe.rb
rspectacular-0.21.6 lib/rspectacular/plugins/stripe.rb
rspectacular-0.21.5 lib/rspectacular/plugins/stripe.rb