aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/encrypted_configuration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/encrypted_configuration_test.rb')
-rw-r--r--activesupport/test/encrypted_configuration_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/encrypted_configuration_test.rb b/activesupport/test/encrypted_configuration_test.rb
index 93ccf457de..387d6e1c1f 100644
--- a/activesupport/test/encrypted_configuration_test.rb
+++ b/activesupport/test/encrypted_configuration_test.rb
@@ -42,6 +42,12 @@ class EncryptedConfigurationTest < ActiveSupport::TestCase
assert @credentials.something[:good]
end
+ test "reading comment-only configuration" do
+ @credentials.write("# comment")
+
+ assert_equal @credentials.config, {}
+ end
+
test "change configuration by key file" do
@credentials.write({ something: { good: true } }.to_yaml)
@credentials.change do |config_file|