spec/formatter_spec.rb in envault-0.2.0 vs spec/formatter_spec.rb in envault-0.2.1
- old
+ new
@@ -10,6 +10,17 @@
}
yaml = Formatter.escape_yaml(@envs)
expect(yaml).to eq("USERNAME_A: \"hogehoge\"\nPASSWORD_A: \"hogehoge\"\nAPI_KEY_A: \"fugafuga\"")
end
+
+ it "escape_yaml not quote" do
+ @envs = {
+ 'USERNAME_A' => 'hogehoge',
+ 'PASSWORD_A' => 'hogehoge',
+ 'API_KEY_A' => 'fugafuga'
+ }
+
+ yaml = Formatter.escape_yaml(@envs, false)
+ expect(yaml).to eq("USERNAME_A: hogehoge\nPASSWORD_A: hogehoge\nAPI_KEY_A: fugafuga")
+ end
end