require 'spec_helper' require 'xxx2json' describe Xxx2json::CLI do before do end it "should stdout sample" do output = capture_stdout do Xxx2json::CLI.start(['help']) end output.should_not nil end it "include" do output = capture_stdout do Xxx2json::CLI.start(['help', 'sample']) end output.should include('--fields') end after do end end