Permalink
Browse files

Use test-unit gem.

Also fix incorrectly renamed test method.
  • Loading branch information...
1 parent 0cbcb0a commit 2a2d36ea857156b05a2973629eb9444ee8cd3c30 @mattwildig committed Mar 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 1_solitaire/test.rb
View
@@ -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

0 comments on commit 2a2d36e

Please sign in to comment.