Sha256: 5014fa282b76674c1e2ff5a50b8e2a2ccc0c09460998ac446a07884803b3c80f
Contents?: true
Size: 625 Bytes
Versions: 4
Compression:
Stored size: 625 Bytes
Contents
# -*- coding: utf-8 -*- require File.expand_path( File.join(File.dirname(__FILE__), "..", "..", "spec_helper") ) describe CommandQuery do before do @certified_output_dirname = File.join( TEST_DIR, "certified_output" ) end it "should accept -h (help) option" do out = capture_out { CliDirCat.run %w{query -h} }.out out.should match /Usage:/ end it "should show catalogs info" do cat_filename = File.join( @certified_output_dirname, "dircat1.yaml" ) out = capture_out { CliDirCat.run "query #{cat_filename}".split }.out out.should match /file: 2/ out.should match /Bytes: 4/ end end
Version data entries
4 entries across 4 versions & 1 rubygems