require_relative '../test_helper' module OhlohScm::Adapters class SvnCatFileTest < Scm::Test def test_cat_file with_svn_repository('svn') do |svn| expected = <<-EXPECTED /* Hello, World! */ #include main() { printf("Hello, World!\\n"); } EXPECTED assert_equal expected, svn.cat_file(Scm::Commit.new(:token => 1), Scm::Diff.new(:path => "trunk/helloworld.c")) assert_equal nil, svn.cat_file(Scm::Commit.new(:token => 1), Scm::Diff.new(:path => "file not found")) end end end end