spec/helper.rb in fog-bouncer-0.2.5 vs spec/helper.rb in fog-bouncer-0.2.6

- old
+ new

@@ -25,10 +25,20 @@ def load_security(security) Fog::Bouncer.load File.dirname(__FILE__) + "/support/security/#{security}.rb" end +def fog_security_groups + Fog::Bouncer.fog.security_groups.all.reject(&:vpc_id) +end + Fog.mock! unless ENV['FOG_REAL'] && ["1", "true"].include?(ENV['FOG_REAL']) + +class MiniTest::Spec + before :each do + Fog::Bouncer.pretend = false + end +end MiniTest::Unit.after_tests do Fog::Bouncer.doorlists.each do |name, doorlist| doorlist.groups.each do |group| group.revoke