diff options
author | Lamont Granquist <lamont@opscode.com> | 2012-08-30 14:33:07 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-08-30 15:04:03 -0700 |
commit | c0f80a3c03db8aa1d566b6e151b23c2b48ef1ed5 (patch) | |
tree | 2848353c010b75dc4b76b41f32ec8272f38c4f0b | |
parent | 1e60c060cc88380b57db01cf94b5009b40c5cac5 (diff) | |
download | chef-c0f80a3c03db8aa1d566b6e151b23c2b48ef1ed5.tar.gz |
CHEF-3400 spec fix: magical file needs magical diff
-rw-r--r-- | chef/spec/unit/provider/remote_file_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chef/spec/unit/provider/remote_file_spec.rb b/chef/spec/unit/provider/remote_file_spec.rb index 6f2fc65f3e..6204a44f6b 100644 --- a/chef/spec/unit/provider/remote_file_spec.rb +++ b/chef/spec/unit/provider/remote_file_spec.rb @@ -218,6 +218,13 @@ describe Chef::Provider::RemoteFile, "action_create" do describe "when the target file already exists" do before do ::File.stub!(:exists?).with(@resource.path).and_return(true) + @provider.stub!(:diff_current).and_return([ + "--- /tmp/foo 2012-08-30 21:28:17.632782551 +0000", + "+++ /tmp/bar 2012-08-30 21:28:20.816975437 +0000", + "@@ -1 +1 @@", + "-foo bar", + "+bar foo" + ]) @provider.stub!(:get_from_server).and_return(@tempfile) end |