Sha256: 819e393e9d250ca4eb1b023f3d58d26be3290cdae52a60ef68550934a777103f

Contents?: true

Size: 636 Bytes

Versions: 1

Compression:

Stored size: 636 Bytes

Contents

require File.expand_path( File.join(File.dirname(__FILE__), "..", "..", "spec_helper") )

describe DirCatDiff do

  before do
    @testdata_dirname         = TEST_DIR
    @certified_output_dirname = File.join( @testdata_dirname, "certified_output" )
  end

  it "should accept -h (help) option" do
    out = with_stdout_captured do
      args = %w{-h}
      DirCatDiff.new.parse_args(args)
    end
    out.should match /Usage:/
  end

  it "should accept --version option" do
    out = with_stdout_captured do
      args = %w{--version}
      DirCatDiff.new.parse_args(args)
    end
    out.should match /#{DirCat::version}/
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dircat-0.1.4 spec/dircat/cli/dircat_query_diff_spec.rb