chrislloyd-fancypath 0.5.2 → 0.5.3
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 +12 -0
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/fancypath.rb
CHANGED
data/spec/fancypath_spec.rb
CHANGED
@@ -83,6 +83,18 @@ describe '#set_extension' do
|
|
83
83
|
|
84
84
|
end
|
85
85
|
|
86
|
+
describe '#move' do
|
87
|
+
|
88
|
+
example "destination has the file contents, source does not exist" do
|
89
|
+
@file.write('foo')
|
90
|
+
dest = TMP_DIR/'newfile'
|
91
|
+
@file.move( dest )
|
92
|
+
@file.should_not exist
|
93
|
+
dest.read.should == 'foo'
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
97
|
+
|
86
98
|
end #/Fancypath
|
87
99
|
|
88
100
|
describe "String#to_path" do
|