chrislloyd-fancypath 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/fancypath.rb +5 -0
- data/spec/fancypath_spec.rb +7 -0
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/fancypath.rb
CHANGED
data/spec/fancypath_spec.rb
CHANGED
@@ -17,6 +17,13 @@ describe '#join', 'aliased to #/' do
|
|
17
17
|
|
18
18
|
end
|
19
19
|
|
20
|
+
describe '#parent' do
|
21
|
+
|
22
|
+
it('returns parent') { @file.parent.should == TMP_DIR.to_path }
|
23
|
+
it('returns Fancypath') { @file.parent.should be_instance_of(Fancypath) }
|
24
|
+
|
25
|
+
end
|
26
|
+
|
20
27
|
describe '#touch', 'file does not exist' do
|
21
28
|
|
22
29
|
it('returns self') { @file.touch.should == @file }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chrislloyd-fancypath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myles Byrne
|
@@ -10,7 +10,7 @@ autorequire: fancypath
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2008-12-
|
13
|
+
date: 2008-12-02 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|