fast 0.0.4 → 0.0.5
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/fast/dir-filter.rb +8 -0
- data/lib/fast/version.rb +1 -1
- data/spec/fast/dir-filter_spec.rb +8 -1
- metadata +3 -3
data/lib/fast/dir-filter.rb
CHANGED
data/lib/fast/version.rb
CHANGED
@@ -4,7 +4,14 @@ require "zucker/os"
|
|
4
4
|
describe Fast::DirFilter do
|
5
5
|
describe "#extension" do
|
6
6
|
context "when given a list of file names and a extension" do
|
7
|
-
it "should return a list of the files with the given extension"
|
7
|
+
it "should return a list of the files with the given extension" do
|
8
|
+
list = ["file.txt", "data.txt", "thumbs.db", "data.txt.jpg"]
|
9
|
+
final_list = Fast::DirFilter.new( list ).extension "txt"
|
10
|
+
final_list.should include "file.txt"
|
11
|
+
final_list.should include "data.txt"
|
12
|
+
final_list.should_not include "thumbs.db"
|
13
|
+
final_list.should_not include "data.txt.jpg"
|
14
|
+
end
|
8
15
|
end
|
9
16
|
end
|
10
17
|
|
metadata
CHANGED