dircat 0.1.4 → 0.1.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.
@@ -1,35 +0,0 @@
1
- require File.expand_path( File.join(File.dirname(__FILE__), "..", "..", "spec_helper") )
2
-
3
- describe DirCatQuery do
4
-
5
- before do
6
- @testdata_dirname = TEST_DIR
7
- @certified_output_dirname = File.join( @testdata_dirname, "certified_output" )
8
- end
9
-
10
- it "should accept -h (help) option" do
11
- out = with_stdout_captured do
12
- args = %w{-h}
13
- DirCatQuery.new.parse_args(args)
14
- end
15
- out.should match /Usage:/
16
- end
17
-
18
- it "should accept --version option" do
19
- out = with_stdout_captured do
20
- args = %w{--version}
21
- DirCatQuery.new.parse_args(args)
22
- end
23
- out.should match /#{DirCat::version}/
24
- end
25
-
26
- it "should show catalogs info" do
27
- cat_filename = File.join( @certified_output_dirname, "dircat1.yaml" )
28
- out = with_stdout_captured do
29
- args = "#{cat_filename}"
30
- DirCatQuery.new.parse_args(args.split)
31
- end
32
- out.should match /file: 2/
33
- out.should match /Bytes: 4/
34
- end
35
- end