[ create a new paste ] login | about

Project: uthcode
Link: http://uthcode.codepad.org/tiKrAZKZ    [ raw code | fork ]

Ruby, pasted on Aug 7:
require "rubygems"
require 'capistrano'
require 'utils'
require "test/unit"

class BuildTest < Test::Unit::TestCase
    def setup
        @config = Capistrano::Configuration.new
        @config.stubs(:logger).returns(stub_everything)
    end

    def test_build
        @config.dry_run = true
        @config.load 'deploy'
        @config.load do
            set :application, "cap-utils"
            task :build do
                fetch :current_release
            end
        end

        assert_nothing_raised do
            @config.build
        end

    end
end


Create a new paste based on this one


Comments: