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

Version Path
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
swipe-rails-0.0.5 vendor/bundle/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
vergissberlin-0.0.9 vendor/bundle/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
vergissberlin-0.0.7 vendor/bundle/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/rake-10.0.3/test/test_rake_reduce_compat.rb
challah-1.0.0.beta3 vendor/bundle/gems/rake-10.0.4/test/test_rake_reduce_compat.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rake-10.0.4/test/test_rake_reduce_compat.rb