Sha256: 9c2bdcae5af73e275ecc0a1a48c0264345173cde29b16365d0c176d27fc4223c

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require 'test_helper'

class TestToriBackendFileSystem < Test::Unit::TestCase
  class Uploader
    def path
      "/tmp/tori/test"
    end
  end

  test "#initialize" do
    path = Pathname("tmp/tori/test")
    i = Tori::Backend::FileSystem.new(path)

    assert_instance_of Tori::Backend::FileSystem, i
    assert_raise(ArgumentError){ Tori::Backend::FileSystem.new }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tori-0.0.2 test/test_tori_backend_filesystem.rb
tori-0.0.1 test/test_tori_backend_filesystem.rb