mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
3d1bdb06bf
git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@6268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
17 lines
No EOL
354 B
Ruby
17 lines
No EOL
354 B
Ruby
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 |