branchable_cdn_assets 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e26d161a2f90baf7eccfd0196b73ad4960e44999
|
4
|
+
data.tar.gz: 3c5283f4b6a357efc58247b639bc0176da4f402d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63978ead84a55ce26f39193527e8e54b9b54a87c7987bdc2569ce0e4ff7409971ab2b5e146262f397c6a630232718cc4b248d1005a822924a93bc14f43f3925
|
7
|
+
data.tar.gz: 61852b9411fedcfbf00a1c69bdb2a4f00de1e3805fe0de800c7ed7576be9e871acd44f0e4fc70d16b0e1af89cc02c62a43af4b2587f5ef02a9a5952c550adbec
|
@@ -43,6 +43,10 @@ describe BranchableCDNAssets::Config do
|
|
43
43
|
"baz: wu\n"
|
44
44
|
end
|
45
45
|
|
46
|
+
let(:yaml_erb) do
|
47
|
+
"foo: <%= 'bar' %>"
|
48
|
+
end
|
49
|
+
|
46
50
|
describe "#raw_data" do
|
47
51
|
context "when given a hash" do
|
48
52
|
it "uses hash data as is" do
|
@@ -59,6 +63,12 @@ describe BranchableCDNAssets::Config do
|
|
59
63
|
|
60
64
|
expect( described_class.new('yaml').raw_data ).to eq foo: 'bar', baz: 'wu'
|
61
65
|
end
|
66
|
+
it "reads erb in yaml" do
|
67
|
+
allow(File).to receive(:exists?).with('yaml_erb').and_return(true)
|
68
|
+
allow(IO).to receive(:read).with('yaml_erb').and_return(yaml_erb)
|
69
|
+
|
70
|
+
expect( described_class.new('yaml_erb').raw_data ).to eq foo: 'bar'
|
71
|
+
end
|
62
72
|
it "raises exception if file not found" do
|
63
73
|
allow(File).to receive(:exists?).with('yaml').and_return(false)
|
64
74
|
|