diff options
author | Nick Lewis <nick@puppetlabs.com> | 2010-10-28 14:41:51 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2010-10-28 14:41:51 -0700 |
commit | e559b48d51c53c4a345353de1e196634c7430195 (patch) | |
tree | 993aea344b546fedfa8968d76d0333c712b79575 | |
parent | 0eb64776351bdf56910a0ef7802b5917ce29cabf (diff) | |
parent | 2c98db60a6a667663745b4e0f5f7ad70c15fc364 (diff) | |
download | puppet-e559b48d51c53c4a345353de1e196634c7430195.tar.gz puppet-e559b48d51c53c4a345353de1e196634c7430195.tar.xz puppet-e559b48d51c53c4a345353de1e196634c7430195.zip |
Merge branch 'feature/next/5148-fix' into next
-rwxr-xr-x | spec/unit/node/facts_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/node/facts_spec.rb b/spec/unit/node/facts_spec.rb index 19049e9bf..cb2aa3dc7 100755 --- a/spec/unit/node/facts_spec.rb +++ b/spec/unit/node/facts_spec.rb @@ -130,7 +130,7 @@ describe Puppet::Node::Facts, "when indirecting" do facts = Puppet::Node::Facts.new("foo", {'a' => 1, 'b' => 2, 'c' => 3}) facts.expiration = @expiration pson = PSON.parse(facts.to_pson) - pson.should == {"name"=>"foo", "timestamp"=>"Thu Oct 28 11:16:31 -0700 2010", "expiration"=>"Thu Oct 28 11:21:31 -0700 2010", "values"=>{"a"=>1, "b"=>2, "c"=>3}} + pson.should == {"name"=>"foo", "timestamp"=>@timestamp.to_s, "expiration"=>@expiration.to_s, "values"=>{"a"=>1, "b"=>2, "c"=>3}} end end end |