Permalink
Browse files

backport r46890 from ruby/ruby trunk

  • Loading branch information...
hsbt committed Jul 21, 2014
1 parent f374191 commit 3a2943e30be6cfa7be974afefa8ebcb9d6449116
Showing with 4 additions and 2 deletions.
  1. +3 −1 test/test_rake_application.rb
  2. +1 −1 test/test_rake_test_task.rb
@@ -17,8 +17,10 @@ def setup_command_line(*options)
end
def test_display_exception_details
obj = Object.new
obj.instance_eval("def #{__method__}; raise 'test'; end", "ruby")
begin
raise 'test'
obj.__send__(__method__)
rescue => ex
end
@@ -105,7 +105,7 @@ def test_run_code_rake_default_gem
t.loader = :rake
end
assert_match(/\A ".*?"\Z/, test_task.run_code)
assert_match(/\A(-I".*?" *)* ".*?"\Z/, test_task.run_code)
ensure
Gem.loaded_specs['rake'] = rake
end

0 comments on commit 3a2943e

Please sign in to comment.