Sha256: 3fa9232efa34e83da233acc83a43196c7e7c3f26223fdd2160525e6811cba971
Contents?: true
Size: 684 Bytes
Versions: 67
Compression:
Stored size: 684 Bytes
Contents
require File.expand_path('../helper', __FILE__) require 'open3' class TestRakeReduceCompat < Rake::TestCase # TODO: factor out similar code in test_rake_functional.rb def rake(*args) Open3.popen3(RUBY, "-I", @rake_lib, @rake_exec, *args) { |_, out, _, _| out.read } end def invoke_normal(task_name) rake task_name.to_s end def test_no_deprecated_dsl rakefile %q{ task :check_task do Module.new { p defined?(task) } end task :check_file do Module.new { p defined?(file) } end } assert_equal "nil", invoke_normal(:check_task).chomp assert_equal "nil", invoke_normal(:check_file).chomp end end
Version data entries
67 entries across 51 versions & 22 rubygems