diff --git a/spec/clim/dsl_spec/string_09_spec.cr b/spec/clim/dsl_spec/string_09_spec.cr index 88990362..814fd21c 100644 --- a/spec/clim/dsl_spec/string_09_spec.cr +++ b/spec/clim/dsl_spec/string_09_spec.cr @@ -155,7 +155,7 @@ spec( exception_message: "Option that requires an argument. \"--string\"", }, { - argv:q ["--help"], + argv: ["--help"], expect_help: {{main_help_message}}, }, { diff --git a/spec/clim/dsl_spec/sub_command_01_02_spec.cr b/spec/clim/dsl_spec/sub_command_01_02_spec.cr index 997d917b..7dd7a23e 100644 --- a/spec/clim/dsl_spec/sub_command_01_02_spec.cr +++ b/spec/clim/dsl_spec/sub_command_01_02_spec.cr @@ -258,39 +258,3 @@ spec_for_sub_sub_commands( ] ) {% end %} - -macro spec_for_jump_over_sub_sub_command(spec_class_name, spec_cases) - {% for spec_case, index in spec_cases %} - {% class_name = (spec_class_name.stringify + index.stringify).id %} - - # define dsl - class {{class_name}} < Clim - main_command do - run do |opts, args| - assert_opts_and_args({{spec_case}}) - end - command "sub_command" do - run do |opts, args| - end - command "sub_sub_command" do - run do |opts, args| - assert_opts_and_args({{spec_case}}) - end - end - end - command "jump_over_sub_sub_command" do - run do |opts, args| - assert_opts_and_args({{spec_case}}) - end - end - end - end - - # spec - describe "jump over sub_sub command," do - describe "if argv is " + {{spec_case["argv"].stringify}} + "," do - it_blocks({{class_name}}, {{spec_case}}) - end - end - {% end %} -end