spec/cli_spec.rb in hisyo-0.1.0 vs spec/cli_spec.rb in hisyo-0.2.0
- old
+ new
@@ -1,10 +1,9 @@
require "spec_helper"
-describe "Hisyo.parse_options" do
- it "should parse options" do
- options = Hisyo::CLI.parse_options(%w!-n -v --root=/tmp!)
- options[:dryrun].should be_true
- options[:verbose].should be_true
- options[:root].should == "/tmp"
+describe "Hisyo::CLI options" do
+ it "should run Generator.new.run" do
+ capture_io do
+ lambda { Hisyo::CLI.run(%w!--help!) }.should raise_error(SystemExit)
+ end
end
end