1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/test/utils.rb

17 lines
354 B
Ruby
Raw Normal View History

unless defined?(TestExtensions)
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'test/unit'
require 'mocha'
require 'capistrano/server_definition'
module TestExtensions
def server(host, options={})
Capistrano::ServerDefinition.new(host, options)
end
end
class Test::Unit::TestCase
include TestExtensions
end
end