diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-02 19:07:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-02 19:07:55 +0000 |
commit | 719b0f8e3037e1033726b6487d7b0d9fc1412e7d (patch) | |
tree | c5a08c8c9abae9b7f0514f680f56553a7a03656a /test/rake/test_pseudo_status.rb | |
parent | a0f667c33e24928374d494c9c33d0082355785e1 (diff) | |
download | ruby-719b0f8e3037e1033726b6487d7b0d9fc1412e7d.tar.gz |
* lib/rake: updated to rake code to rake-0.8.7 source code base.
* lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line):
respace dependencies too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rake/test_pseudo_status.rb')
-rw-r--r-- | test/rake/test_pseudo_status.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/rake/test_pseudo_status.rb b/test/rake/test_pseudo_status.rb new file mode 100644 index 0000000000..149aa5bf9f --- /dev/null +++ b/test/rake/test_pseudo_status.rb @@ -0,0 +1,23 @@ +require 'test/unit' +require 'rake' + +require_relative 'capture_stdout' + +class PseudoStatusTest < Test::Unit::TestCase + def test_with_zero_exit_status + s = Rake::PseudoStatus.new + assert_equal 0, s.exitstatus + assert_equal 0, s.to_i + assert_equal 0, s >> 8 + assert ! s.stopped? + assert s.exited? + end + def test_with_99_exit_status + s = Rake::PseudoStatus.new(99) + assert_equal 99, s.exitstatus + assert_equal 25344, s.to_i + assert_equal 99, s >> 8 + assert ! s.stopped? + assert s.exited? + end +end |