Sha256: 0754ee120f2b4c66120db22255fb4cdf83914330cd812be0aecb0c94e8dd728a
Contents?: true
Size: 755 Bytes
Versions: 8
Compression:
Stored size: 755 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) lib = File.join(@orig_PWD, "lib") bin_rake = File.join(@orig_PWD, "bin", "rake") Open3.popen3(RUBY, "-I", lib, bin_rake, *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
8 entries across 7 versions & 3 rubygems