diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-16 18:54:36 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-16 18:56:42 +0300 |
commit | 28a5f8c60a29445e147614767a8452b3141ef868 (patch) | |
tree | 72f8bda91908354d72d5267bf6e1b75dbd807b87 /spec/support | |
parent | 79aa00321063daf8f650683373db29832c8e13f1 (diff) |
Use secret_key and secret_value in Variables controller
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/controllers/variables_shared_examples.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/support/shared_examples/controllers/variables_shared_examples.rb b/spec/support/shared_examples/controllers/variables_shared_examples.rb index d7acf8c0032..7c7e345f715 100644 --- a/spec/support/shared_examples/controllers/variables_shared_examples.rb +++ b/spec/support/shared_examples/controllers/variables_shared_examples.rb @@ -15,21 +15,21 @@ end shared_examples 'PATCH #update updates variables' do let(:variable_attributes) do { id: variable.id, - key: variable.key, - value: variable.value, + secret_key: variable.key, + secret_value: variable.value, protected: variable.protected?.to_s } end let(:new_variable_attributes) do - { key: 'new_key', - value: 'dummy_value', + { secret_key: 'new_key', + secret_value: 'dummy_value', protected: 'false' } end context 'with invalid new variable parameters' do let(:variables_attributes) do [ - variable_attributes.merge(value: 'other_value'), - new_variable_attributes.merge(key: '...?') + variable_attributes.merge(secret_value: 'other_value'), + new_variable_attributes.merge(secret_key: '...?') ] end @@ -52,7 +52,7 @@ shared_examples 'PATCH #update updates variables' do let(:variables_attributes) do [ new_variable_attributes, - new_variable_attributes.merge(value: 'other_value') + new_variable_attributes.merge(secret_value: 'other_value') ] end @@ -74,7 +74,7 @@ shared_examples 'PATCH #update updates variables' do context 'with valid new variable parameters' do let(:variables_attributes) do [ - variable_attributes.merge(value: 'other_value'), + variable_attributes.merge(secret_value: 'other_value'), new_variable_attributes ] end |