Sha256: 99526620cbb804efc61cd5b75c742b103a45e089e3b2ed90d9bfb9b96827a460
Contents?: true
Size: 521 Bytes
Versions: 26
Compression:
Stored size: 521 Bytes
Contents
#!/usr/bin/env rspec require 'spec_helper' describe Puppet::Parser::Functions do before :each do Puppet::Parser::Functions.rmfunction("template") if Puppet::Parser::Functions.functions.include?("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
26 entries across 26 versions & 3 rubygems