diff --git a/lib/asset_sync/config.rb b/lib/asset_sync/config.rb index ee211a1..7856818 100644 --- a/lib/asset_sync/config.rb +++ b/lib/asset_sync/config.rb @@ -122,10 +122,6 @@ def manifest_path File.join(directory, "manifest.yml") end - def gzip? - self.compression == 'gz' - end - def gzip_compression= bool if bool self.compression = 'gz' diff --git a/spec/unit/asset_sync_spec.rb b/spec/unit/asset_sync_spec.rb index 9364e48..effa13d 100644 --- a/spec/unit/asset_sync_spec.rb +++ b/spec/unit/asset_sync_spec.rb @@ -230,8 +230,8 @@ AssetSync.config.gzip_compression = true end - it "config.gzip? should be true" do - expect(AssetSync.config.gzip?).to be_truthy + it "config.compression should be 'gz'" do + expect(AssetSync.config.compression).to eq("gz") end end diff --git a/spec/unit/azure_rm_spec.rb b/spec/unit/azure_rm_spec.rb index a3a0e92..274e408 100644 --- a/spec/unit/azure_rm_spec.rb +++ b/spec/unit/azure_rm_spec.rb @@ -110,8 +110,8 @@ AssetSync.config.gzip_compression = true end - it "config.gzip? should be true" do - expect(AssetSync.config.gzip?).to be_truthy + it "config.compression should be 'gz'" do + expect(AssetSync.config.compression).to eq("gz") end end diff --git a/spec/unit/backblaze_spec.rb b/spec/unit/backblaze_spec.rb index 1b71026..08876e8 100644 --- a/spec/unit/backblaze_spec.rb +++ b/spec/unit/backblaze_spec.rb @@ -118,8 +118,8 @@ AssetSync.config.gzip_compression = true end - it "config.gzip? should be true" do - expect(AssetSync.config.gzip?).to be_truthy + it "config.compression should be 'gz'" do + expect(AssetSync.config.compression).to eq("gz") end end diff --git a/spec/unit/google_spec.rb b/spec/unit/google_spec.rb index 8f8a89e..b8cfbce 100644 --- a/spec/unit/google_spec.rb +++ b/spec/unit/google_spec.rb @@ -229,8 +229,8 @@ AssetSync.config.gzip_compression = true end - it "config.gzip? should be true" do - expect(AssetSync.config.gzip?).to be_truthy + it "config.compression should be 'gz'" do + expect(AssetSync.config.compression).to eq("gz") end end