Sha256: ee0c6be64b949dbfe92a9ca396216a059b2734d619f1bc153b8993e5796258ca
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
Given /^the key stream "(.*)"$/ do |key_stream| @solitaire = SolitaireCipher.new(key_stream) end When /^I decode the string "(.*)"$/ do |encoded_string| @decoded_string = @solitaire.decode(encoded_string) end Then /^it should produce the plain text "(.*)"$/ do |plain_text_string| @decoded_string.should == plain_text_string end When /^I encode the string "(.*)"$/ do |plain_text_string| @encoded_string = @solitaire.encode(plain_text_string) end Then /^it should produce the cipher text "(.*)"$/ do |encoded_string| @encoded_string.should == encoded_string end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mathie-solitaire_cipher-1.0.0 | features/step_definitions/solitaire_cipher.rb |