Sha256: 4ff935a8912357513ac0345c97a800db32be4bd9c214307dbaa430c3b35c1fa2
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '../testutilities') require File.expand_path(File.join(File.dirname(__FILE__), "../../lib/amp")) class TestMerge < AmpTestCase TEST_BASE = File.expand_path(File.join(File.dirname(__FILE__), 'base.txt')) TEST_LOCAL = File.expand_path(File.join(File.dirname(__FILE__), 'local.txt')) TEST_REMOTE = File.expand_path(File.join(File.dirname(__FILE__), 'remote.txt')) TEST_EXPECTED = File.expand_path(File.join(File.dirname(__FILE__), 'expected.local.txt')) TEST_OUT = File.expand_path(File.join(File.dirname(__FILE__), 'local.txt.out')) TEST_BACKUP = File.expand_path(File.join(File.dirname(__FILE__), 'local.txt.bak')) def test_full_merge File.copy TEST_LOCAL, TEST_BACKUP # kill the error output... old, $stderr = $stderr, StringIO.new Amp::Merges::Mercurial::ThreeWayMerger.three_way_merge(TEST_LOCAL, TEST_BASE, TEST_REMOTE, :labels => ["local","other"]) $stderr = old # and reassign File.move TEST_LOCAL , TEST_OUT File.move TEST_BACKUP, TEST_LOCAL assert_equal File.read(TEST_EXPECTED), File.read(TEST_OUT) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amp-0.5.3 | test/merge_tests/test_merge.rb |