Sha256: 65854287dfb978cc46858080dd9ca179f1e7f6f02a46c2730c575061750dea11
Contents?: true
Size: 724 Bytes
Versions: 7
Compression:
Stored size: 724 Bytes
Contents
# http://sneaq.net/textmate-wtf $:.reject! { |e| e.include? 'TextMate' } require 'rubygems' require 'test/unit' require 'mocha' require File.dirname(__FILE__) + '/../lib/provisional' class Test::Unit::TestCase def new_scm(klass, options = {}) klass.new({ 'name' => 'name', 'template_path' => 'template_path', 'domain' => 'domain', 'id' => 1, 'username' => 'username', 'password' => 'password' }.merge(options)) end def stub_git_checkin(&block) repo_stub = stub() repo_stub.expects(:add).with('.') repo_stub.expects(:commit).with('Initial commit by Provisional') if block yield repo_stub end Git.expects(:open).returns(repo_stub) Dir.expects(:chdir) end end
Version data entries
7 entries across 7 versions & 1 rubygems