Permalink
Browse files

small upd

  • Loading branch information...
alexeypetrushin committed Sep 7, 2011
1 parent ba6fa0f commit b47b6f287e0f63a87e7f646160edacdc5b36a9fc
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/vfs/drivers/local.rb
  2. +1 −1 spec/storages/local_spec.rb
View
@@ -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
@@ -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

0 comments on commit b47b6f2

Please sign in to comment.