diff options
| -rw-r--r-- | features/decryption.feature | 11 | ||||
| -rw-r--r-- | features/encryption.feature | 11 | ||||
| -rw-r--r-- | features/step_definitions/encryption.rb | 12 |
3 files changed, 28 insertions, 6 deletions
diff --git a/features/decryption.feature b/features/decryption.feature index 4c2ed1c..edfa9b4 100644 --- a/features/decryption.feature +++ b/features/decryption.feature @@ -2,6 +2,11 @@ Feature: Decryption In order to decrypt a message I want to be able to decrypt a secret message - Scenario: Decrypt a message - Given I have entered blah - Then the result should be halb on the screen + Scenario Outline: Decrypt a message + Given I want to decrypt <encrypted> + Then the result should be <message> on the screen + + Examples: + | message | encrypted | + | Your Cipher Is Working | CLEPK HHNIY CFPWH FDFEH | + | Welcome To Ruby Quiz | ABVAW LWZSY OORYK DUPVH | diff --git a/features/encryption.feature b/features/encryption.feature index 20cf117..65174a6 100644 --- a/features/encryption.feature +++ b/features/encryption.feature @@ -2,6 +2,11 @@ Feature: Encryption In order to encrypt a message I want to be able to encrypt a secret message - Scenario: Encrypt a message - Given I have entered blah - Then the result should be halb on the screen + Scenario Outline: Encrypt a message + Given I want to encrypt <message> + Then the result should be <encrypted> on the screen + + Examples: + | message | encrypted | + | Your Cipher Is Working | CLEPK HHNIY CFPWH FDFEH | + | Welcome To Ruby Quiz | ABVAW LWZSY OORYK DUPVH | diff --git a/features/step_definitions/encryption.rb b/features/step_definitions/encryption.rb new file mode 100644 index 0000000..cd59da5 --- /dev/null +++ b/features/step_definitions/encryption.rb @@ -0,0 +1,12 @@ + +Given /^I want to decrypt (.*)/ do | input | + pending # express the regexp above with the code you wish you had +end + +Given /^I want to encrypt (.*)/ do | input | + pending # express the regexp above with the code you wish you had +end + +Then /^the result should be (.*) on the screen$/ do |expected| + pending # express the regexp above with the code you wish you had +end |
