Sha256: 929b19e91190fc7cbbe66623524183d385d623805252b9f4358b1f68dd4ce767

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "..", "lib")

require 'test/unit'
require 'buildmaster'
require 'mock'

module BuildMaster

class ReleaseTest < Test::Unit::TestCase
  def testRelease
    cvs_mock = Mock.new(CvsDriver)
    cvs_mock.expects(:checkout)
    cvs_mock.expects(:tag)
    cvs_mock.expects(:commit)
    
    builder_mock = Mock.new
    builder_mock.expects(:build)
    
    release = Release.new(cvs_mock, builder_mock)
    release.release_candidate('tag')
    
    cvs_mock.verify
    builder_mock.verify
  end
end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
BuildMaster-0.7.0 test/buildmaster/tc_release_control.rb
BuildMaster-0.8.0 test/buildmaster/tc_release_control.rb
BuildMaster-0.8.1 test/buildmaster/tc_release_control.rb