Sha256: 7271c662e99424233e9444763e4e0a51af6f996440b9dc34c998181e4c8c74e1
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 Bytes
Contents
require "simplecov" unless ENV['NO_SIMPLECOV'] require 'minitest/autorun' ENV['AWS_ACCESS_KEY_ID'] ||= "abcde1234" ENV['AWS_SECRET_ACCESS_KEY'] ||= "abcde1234" ENV['AWS_ACCOUNT_ID'] ||= "1234567890" require "fog/bouncer" require "scrolls" Scrolls::Log.stream = File.open(File.dirname(__FILE__) + '/../logs/test.log', 'w') module TestLogger def self.log(data, &blk) Scrolls.log(data, &blk) end end Fog::Bouncer.instrument_with(TestLogger.method(:log)) def load_security(security) Fog::Bouncer.load File.dirname(__FILE__) + "/support/security/#{security}.rb" end Fog.mock! unless ENV['FOG_REAL'] MiniTest::Unit.after_tests do Fog::Bouncer.doorlists.each do |name, doorlist| doorlist.groups.each do |group| group.revoke end doorlist.groups.each do |group| group.destroy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-bouncer-0.2.2 | spec/helper.rb |