Sha256: c029e3957c117945a2528f14d61975c05c45ab7fddc1293cd0cb1fb78619e19d

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 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

2 entries across 2 versions & 1 rubygems

Version Path
multi_sync-0.0.2 spec/support/fog.rb
multi_sync-0.0.1 spec/support/fog.rb