Skip to content

Commit

Permalink
Including test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mankyuhan authored and Jon Yurek committed Jun 8, 2012
1 parent d699680 commit 2337e0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/io_adapters/stringio_adapter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class StringioFileProxyTest < Test::Unit::TestCase
assert_equal Digest::MD5.hexdigest(@contents), @subject.fingerprint
end

should "generate same fingerprint" do
assert_equal @subject.fingerprint, @subject.fingerprint
end


should "return the data contained in the StringIO" do
assert_equal "abc123", @subject.read
end
Expand Down

0 comments on commit 2337e0f

Please sign in to comment.