Sha256: f51bc33a982b1c0a982f40f38cc6c23e990fbb0824cd18bb2d1fa8598f177b72

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'
include DTR::AgentHelper

class RakeTasksTest < Test::Unit::TestCase
  def test_test_task
    FileUtils.mkdir_p("raketasks_test_agent")
    Dir.chdir('raketasks_test_agent') do
      start_agents
    end
    test_dir = File.expand_path(File.dirname(__FILE__) + '/../../testdata/raketasks')
    Dir.chdir(test_dir) do
      output = %x[rake dtr]
      expected = <<-OUTPUT
1 tests, 1 assertions, 0 failures, 0 errors
OUTPUT
      assert_equal 0, $?.exitstatus
      assert output.include?(expected), "should include #{expected}"
    end
  ensure
    stop_agents
    FileUtils.rm_rf("raketasks_test_agent")
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
xli-dtr-1.0.0 test/acceptance/raketasks_test.rb
dtr-1.0.0 test/acceptance/raketasks_test.rb