summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-05-12 14:26:49 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-05-12 14:26:49 -0700
commit704623cb95aacb0544609620994dc36f61a4b463 (patch)
tree6706dc7afa05bf4bbffb2ab7e616717fb6af0c86 /spec/unit/parser
parent9d73b73594d4bf9fe4e8abb369ffc5887b15f4ec (diff)
parentc21539fe2205fc61ca9e0a49b3b2702e76931632 (diff)
Merge branch '2.7.next' into next
Diffstat (limited to 'spec/unit/parser')
-rwxr-xr-xspec/unit/parser/compiler_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/parser/compiler_spec.rb b/spec/unit/parser/compiler_spec.rb
index 48aeb98dd..88f7167f3 100755
--- a/spec/unit/parser/compiler_spec.rb
+++ b/spec/unit/parser/compiler_spec.rb
@@ -48,6 +48,13 @@ describe Puppet::Parser::Compiler do
end
before :each do
+ # Push me faster, I wanna go back in time! (Specifically, freeze time
+ # across the test since we have a bunch of version == timestamp code
+ # hidden away in the implementation and we keep losing the race.)
+ # --daniel 2011-04-21
+ now = Time.now
+ Time.stubs(:now).returns(now)
+
@node = Puppet::Node.new "testnode"
@known_resource_types = Puppet::Resource::TypeCollection.new "development"
@compiler = Puppet::Parser::Compiler.new(@node)