summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2010-05-02 09:19:43 +0200
committerDaniel DeLeo <dan@opscode.com>2010-05-04 10:58:40 -0700
commitf9bc99a708d6d65553cf3ee5c7706d60e5611577 (patch)
tree9e8bbca3bca41d3ec247bc08f25c0db43e16ac07
parenteef60296285b35522c0f3ef0acd0e711bbf74c97 (diff)
downloadchef-f9bc99a708d6d65553cf3ee5c7706d60e5611577.tar.gz
Fix backup test to work in all time zones.
-rw-r--r--chef/spec/unit/provider/file_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/spec/unit/provider/file_spec.rb b/chef/spec/unit/provider/file_spec.rb
index 753705b086..c73eb78ba4 100644
--- a/chef/spec/unit/provider/file_spec.rb
+++ b/chef/spec/unit/provider/file_spec.rb
@@ -331,8 +331,8 @@ describe Chef::Provider::File do
FileUtils.stub!(:mkdir_p).and_return(true)
FileUtils.stub!(:rm).and_return(true)
File.stub!(:exist?).and_return(true)
- Time.stub!(:now).and_return(Time.at(1272147455))
- FileUtils.should_receive(:cp).with("/tmp/s-20080705111233", "/some_prefix/tmp/s-20080705111233.chef-20100424151735", {:preserve => true}).and_return(true)
+ Time.stub!(:now).and_return(Time.at(1272147455).getgm)
+ FileUtils.should_receive(:cp).with("/tmp/s-20080705111233", "/some_prefix/tmp/s-20080705111233.chef-20100424221735", {:preserve => true}).and_return(true)
@provider.backup
end