Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small upd

  • Loading branch information...
commit b47b6f287e0f63a87e7f646160edacdc5b36a9fc 1 parent ba6fa0f
@alexeypetrushin authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/vfs/drivers/local.rb
  2. +1 −1  spec/storages/local_spec.rb
View
6 lib/vfs/drivers/local.rb
@@ -11,8 +11,10 @@ def write data; @out.write data end
DEFAULT_BUFFER = 1000 * 1024
- def initialize root = ''
- @root = root
+ def initialize options = {}
+ options = options.clone
+ @root = options.delete(:root) || ''
+ raise "invalid options #{options}" unless options.empty?
end
def open &block
View
2  spec/storages/local_spec.rb
@@ -5,7 +5,7 @@
with_tmp_spec_dir
before do
- @driver = Vfs::Drivers::Local.new spec_dir
+ @driver = Vfs::Drivers::Local.new root: spec_dir
@driver.open
end
Please sign in to comment.
Something went wrong with that request. Please try again.