secure_yaml 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/secure_yaml/version.rb +1 -1
- data/spec/secure_yaml/loader_spec.rb +2 -2
- data/spec/secure_yaml_spec.rb +1 -1
- metadata +1 -1
data/lib/secure_yaml/version.rb
CHANGED
@@ -3,8 +3,8 @@ require 'spec_helper'
|
|
3
3
|
describe 'Loader' do
|
4
4
|
|
5
5
|
before(:each) do
|
6
|
-
@encrypted_yaml = {prop
|
7
|
-
@decrypted_yaml = {prop
|
6
|
+
@encrypted_yaml = {:prop => 'encrypted'}
|
7
|
+
@decrypted_yaml = {:prop => 'decrytped'}
|
8
8
|
@decrypter = double(SecureYaml::YamlDecrypter)
|
9
9
|
SecureYaml::YamlDecrypter.stub(:new).and_return(@decrypter)
|
10
10
|
end
|
data/spec/secure_yaml_spec.rb
CHANGED
@@ -4,7 +4,7 @@ describe 'SecureYaml' do
|
|
4
4
|
|
5
5
|
before(:each) do
|
6
6
|
@secret_key = 'secret key'
|
7
|
-
@yaml = {prop
|
7
|
+
@yaml = {:prop => 'test'}
|
8
8
|
loader = double(SecureYaml::Loader)
|
9
9
|
loader.stub(:load).and_return(@yaml)
|
10
10
|
SecureYaml::Loader.stub(:new).with(@secret_key).and_return(loader)
|