test/test_command_dsl.rb in cri-2.0a2 vs test/test_command_dsl.rb in cri-2.0a3
- old
+ new
@@ -3,11 +3,11 @@
class Cri::CommandDSLTestCase < Cri::TestCase
def test_create_command
# Define
dsl = Cri::CommandDSL.new
- dsl.instance_eval do
+ dsl.instance_eval do
name 'moo'
usage 'dunno whatever'
summary 'does stuff'
description 'This command does a lot of stuff.'
@@ -49,11 +49,11 @@
def test_subcommand
# Define
dsl = Cri::CommandDSL.new
dsl.instance_eval do
name 'super'
- subcommand do
- name 'sub'
+ subcommand do |c|
+ c.name 'sub'
end
end
command = dsl.command
# Check