Sha256: 4fe5afeb3f6fa880b1ee988fbe2438385227767ae555211a89c34cfd9e983e1f

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

require 'fog'
module Fog
  module SpecHelpers
    def self.extended(example_group)
      example_group.before(:each) do
        Fog.mock!
        Fog::Mock.reset
      end

      example_group.after(:each) do
        Fog.unmock!
      end
    end

    def self.included(example_group)
      example_group.extend self
    end
  end
end

RSpec.configure do |config|
  config.include Fog::SpecHelpers, fog: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multi_sync-0.0.4 spec/support/fog.rb