summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/unit/provider/remote_file/cache_control_data_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/provider/remote_file/cache_control_data_spec.rb b/spec/unit/provider/remote_file/cache_control_data_spec.rb
index 2ae3c41214..05fedcfa8b 100644
--- a/spec/unit/provider/remote_file/cache_control_data_spec.rb
+++ b/spec/unit/provider/remote_file/cache_control_data_spec.rb
@@ -125,6 +125,15 @@ describe Chef::Provider::RemoteFile::CacheControlData do
cache_control_data.etag.should be_nil
cache_control_data.mtime.should be_nil
end
+
+ context "and it still is valid JSON" do
+ let(:cache_json_data) { '' }
+
+ it "returns empty cache control data" do
+ cache_control_data.etag.should be_nil
+ cache_control_data.mtime.should be_nil
+ end
+ end
end
end