Sha256: b6377aa800ec2fbee3853075ed00922ca54930e660094d2ae32990ad2712b423
Contents?: true
Size: 863 Bytes
Versions: 10
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true RSpec.configure do |config| config.before(:each, :stripe => true) do config.rspeckled_logger.debug("Before Each - Start - #{__FILE__}") if defined?(::VCR) vcr_turned_on = ::VCR.turned_on? ::VCR.turn_off! end if defined?(::WebMock) webmock_net_connect = ::WebMock.net_connect_allowed? ::WebMock.allow_net_connect! end begin ::Stripe::Plan.all(:count => 100).each do |plan| plan.delete if plan.id.match(/test/i) || plan.name.match(/test/i) end ::Stripe::Customer.all(:count => 100).each(&:delete) ensure ::VCR.turn_on! if defined?(::VCR) && vcr_turned_on ::WebMock.allow_net_connect! if defined?(::WebMock) && webmock_net_connect end config.rspeckled_logger.debug("Before Each - End - #{__FILE__}") end end
Version data entries
10 entries across 10 versions & 1 rubygems