Sha256: 792fb46407b436de7fb423a3267df761555ef6def1c769a517e3de56256bbc5f
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
require 'helper' class TestFilesystem < Test::Unit::TestCase def test_read path = fixture_path('foo.txt') store = Keyrack::Store::Filesystem.new('path' => path) assert_equal File.read(path), store.read end def test_write path = get_tmpname store = Keyrack::Store::Filesystem.new('path' => path) store.write("foobar") assert_equal "foobar", File.read(path) end def test_read_returns_nil_for_non_existant_file store = Keyrack::Store::Filesystem.new('path' => 'blargityblargh') assert_nil store.read end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
keyrack-0.3.2 | test/unit/store/test_filesystem.rb |
keyrack-0.3.1 | test/unit/store/test_filesystem.rb |
keyrack-0.3.0 | test/unit/store/test_filesystem.rb |