spec/spec_env.rb in inetmgr-0.4.0 vs spec/spec_env.rb in inetmgr-0.5.0
- old
+ new
@@ -10,9 +10,11 @@
yield cfg
cfg.apply_changes if apply_changes
end
def generate_random_name
+ # workaround because IronRuby does not implement File.flock (yet)
+ return System::Guid.NewGuid.to_s if RUBY_ENGINE == "ironruby"
UUID.generate(:compact).to_s
end
end
\ No newline at end of file