From a36cef4c0242b6632f30efabcc03b145152674a6 Mon Sep 17 00:00:00 2001 From: mo k Date: Tue, 14 Aug 2012 12:31:48 -0600 Subject: add step definitioins to satisfy the features. --- features/decryption.feature | 11 ++++++++--- features/encryption.feature | 11 ++++++++--- features/step_definitions/encryption.rb | 12 ++++++++++++ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 features/step_definitions/encryption.rb 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 + Then the result should be 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 + Then the result should be 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 -- cgit v1.2.3