test/scientist_test.rb in boson-1.1.1 vs test/scientist_test.rb in boson-1.2.0

- old
+ new

@@ -150,11 +150,10 @@ assert_error(*args) { command_with_arg_size } assert_error(*args) { command_with_arg_size '' } end it "with too many args raises CommandArgumentError" do - args3 = RUBY_DESCRIPTION.include?('rubinius') ? - [ArgumentError, 'given 3, expected 2'] : + args3 = RUBY_ENGINE == 'rbx' ? [ArgumentError, 'given 3, expected 2'] : [ArgumentError, '3 for 2'] args4 = [OptionCommand::CommandArgumentError, '4 for 2'] assert_error(*args3) { command_with_args 1,2,3 } assert_error(*args4) { command_with_args '1 2 3' } assert_error(*args3) { command_with_arg_size 1,2,3 }