Permalink
Browse files

RUBY_DESCRIPTION -> RUBY_ENGINE for 1.9ers

  • Loading branch information...
1 parent 999ba6a commit c5ef7f0f4a508919a75ae36befbbb1c3da26f7a7 @cldwalker committed Mar 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 test/scientist_test.rb
View
3 test/scientist_test.rb
@@ -152,8 +152,7 @@ def all_commands
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 }

0 comments on commit c5ef7f0

Please sign in to comment.