Sha256: b501d14fcc3c0f5d2154138b07d72fc7294649bfb6b57602e71d4f91a75d1852
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
require_relative '../test_helper' module OhlohScm::Adapters class SvnChainCatFileTest < Scm::Test def test_cat_file_with_chaining goodbye = <<-EXPECTED #include <stdio.h> main() { printf("Goodbye, world!\\n"); } EXPECTED with_svn_chain_repository('svn_with_branching', '/trunk') do |svn| # The first case asks for the file on the HEAD, so it should easily be found assert_equal goodbye, svn.cat_file(Scm::Commit.new(:token => 8), Scm::Diff.new(:path => "goodbyeworld.c")) # The next test asks for the file as it appeared before /branches/development was moved to /trunk, # so this request requires traversal up the chain to the parent SvnAdapter. assert_equal goodbye, svn.cat_file(Scm::Commit.new(:token => 5), Scm::Diff.new(:path => "goodbyeworld.c")) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.0.0 | test/unit/svn_chain_cat_file_test.rb |