Sha256: f68ab24bc575c109cac7736dab1746b6803e44057b4a66537a089e613936d345

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require 'fog'
Fog::Mock.delay = 0
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.3 spec/support/fog.rb