Something went wrong. Try again.
A simplified fork of old Capistrano 2.x - a tool for deploying Ruby applications to a server
Something went wrong. Try again.
657 B · 28 lines
Ruby
at master
1234567891011121314151617181920212223242526272829require 'bundler/setup'require 'test/unit'require 'mocha/test_unit'
require 'minestrone/server_definition'
module TestExtensions def server(host, options = {}) Minestrone::ServerDefinition.new(host, options) end
def namespace(fqn = nil) space = stub(:fully_qualified_name => fqn, :default_task => nil) yield(space) if block_given? space end
def new_task(name, namespace = @namespace, options = {}, &block) block ||= Proc.new {} task = Minestrone::TaskDefinition.new(name, namespace, options, &block) assert_equal block, task.body return task endend
class Test::Unit::TestCase include TestExtensionsend