vfs 0.3.12 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vfs.rb +5 -5
- data/lib/vfs/entries/dir.rb +65 -65
- data/lib/vfs/entries/entry.rb +38 -38
- data/lib/vfs/entries/entry/special_attributes.rb +2 -2
- data/lib/vfs/entries/file.rb +46 -46
- data/lib/vfs/entries/universal_entry.rb +5 -5
- data/lib/vfs/entry_proxy.rb +10 -10
- data/lib/vfs/integration/string.rb +4 -4
- data/lib/vfs/path.rb +25 -25
- data/lib/vfs/storages/local.rb +29 -29
- data/lib/vfs/storages/specification.rb +27 -27
- data/lib/vfs/vfs.rb +7 -7
- data/readme.md +14 -35
- data/spec/container_spec.rb +5 -5
- data/spec/dir_spec.rb +49 -49
- data/spec/entry_spec.rb +9 -9
- data/spec/file_spec.rb +47 -47
- data/spec/path_spec.rb +31 -31
- data/spec/spec_helper.rb +11 -11
- data/spec/storages/local_spec.rb +4 -4
- data/spec/universal_entry_spec.rb +9 -9
- metadata +1 -1
data/spec/storages/local_spec.rb
CHANGED
@@ -2,15 +2,15 @@ require 'vfs/storages/local'
|
|
2
2
|
require 'vfs/storages/specification'
|
3
3
|
|
4
4
|
describe Vfs::Storages::Local do
|
5
|
-
it_should_behave_like "vfs storage"
|
6
|
-
|
5
|
+
it_should_behave_like "vfs storage"
|
6
|
+
|
7
7
|
before do
|
8
8
|
@storage = Vfs::Storages::Local.new
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
describe 'attributes' do
|
12
12
|
it 'created_at'
|
13
|
-
|
13
|
+
|
14
14
|
it 'updated_at'
|
15
15
|
end
|
16
16
|
end
|
@@ -2,42 +2,42 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe 'UniversalEntry' do
|
4
4
|
with_test_fs
|
5
|
-
|
5
|
+
|
6
6
|
before do
|
7
7
|
@path = test_fs['a/b/c']
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
describe 'existence' do
|
11
11
|
it "should check both files and dirs" do
|
12
12
|
@path.should_not exist
|
13
13
|
@path.dir.create
|
14
|
-
@path.should be_dir
|
14
|
+
@path.should be_dir
|
15
15
|
@path.should exist
|
16
|
-
|
16
|
+
|
17
17
|
@path.file.create!
|
18
18
|
@path.should be_file
|
19
19
|
@path.should exist
|
20
20
|
end
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
describe 'destroying' do
|
24
24
|
it "should destroy both files and dirs" do
|
25
25
|
@path.dir.create
|
26
26
|
@path.should be_dir
|
27
27
|
@path.destroy
|
28
|
-
@path.should_not exist
|
29
|
-
|
28
|
+
@path.should_not exist
|
29
|
+
|
30
30
|
@path.file.create
|
31
31
|
@path.should be_file
|
32
32
|
@path.destroy
|
33
33
|
@path.should_not exist
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
it "shouldn't raise if file not exist" do
|
37
37
|
@path.destroy
|
38
38
|
end
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
41
|
describe 'copy_to'
|
42
42
|
describe 'move_to'
|
43
43
|
end
|