Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use test-unit gem.

Also fix incorrectly renamed test method.
  • Loading branch information...
commit 2a2d36ea857156b05a2973629eb9444ee8cd3c30 1 parent 0cbcb0a
@mattwildig authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 1_solitaire/test.rb
View
4 1_solitaire/test.rb
@@ -1,3 +1,5 @@
+gem 'test-unit'
+
require 'test/unit'
require './solitaire'
@@ -89,7 +91,7 @@ def test_encrypter_unkeyed
assert_equal "GLNCQ MJAFF FVOMB JIYCB", e.encrypt("CODEI NRUBY LIVEL ONGER")
end
- def test_encrypter_unkeyed
+ def test_decrypter_unkeyed
d = Solitaire::Decrypter.new(Solitaire::KeyStream.new(UNKEYED_DECK))
assert_equal "CODEI NRUBY LIVEL ONGER", d.decrypt("GLNCQ MJAFF FVOMB JIYCB")
end
Please sign in to comment.
Something went wrong with that request. Please try again.