Sha256: 22b1de5ade92a72d4cad1e3106449ef580b0f6354fc2fce8180f0c45e52937c6
Contents?: true
Size: 542 Bytes
Versions: 16
Compression:
Stored size: 542 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../../spec_helper' describe Puppet::Parser::Functions do before :each do Puppet::Parser::Functions.rmfunction("template") if Puppet::Parser::Functions.function("template") end it "should support multiple threads autoloading the same function" do threads = [] lambda { 10.times { |a| threads << Thread.new { Puppet::Parser::Functions.function("template") } } }.should_not raise_error threads.each { |t| t.join } end end
Version data entries
16 entries across 16 versions & 1 rubygems