Skip to content

Commit

Permalink
Fix broken optional_options test
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Apr 5, 2014
1 parent 44987ee commit e279b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_command_dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def test_optional_options

# Check options
expected_option_definitions = Set.new([
{ :short => 's', :long => nil, :desc => 'short', :argument => :forbidden, :block => nil },
{ :short => nil, :long => 'long', :desc => 'long', :argument => :forbidden, :block => nil }
{ :short => 's', :long => nil, :desc => 'short', :argument => :forbidden, :multiple => false, :block => nil },
{ :short => nil, :long => 'long', :desc => 'long', :argument => :forbidden, :multiple => false, :block => nil }
])
actual_option_definitions = Set.new(command.option_definitions)
assert_equal expected_option_definitions, actual_option_definitions
Expand Down

0 comments on commit e279b7d

Please sign in to comment.