@@ -21,16 +21,16 @@ def test_cat_file
2121EXPECTED
2222
2323 # The file was deleted by the "remove..." patch. Check that it does not exist now, but existed in parent.
24- assert_equal nil , darcs . cat_file ( Scm ::Commit . new ( :token => '1007b5ad4831769283213d47e1fd5f6d30ac97f0' ) , Scm ::Diff . new ( :path => 'helloworld.c' ) )
25- assert_equal expected , darcs . cat_file_parent ( Scm ::Commit . new ( :token => '1007b5ad4831769283213d47e1fd5f6d30ac97f0' ) , Scm ::Diff . new ( :path => 'helloworld.c' ) )
26- assert_equal expected , darcs . cat_file ( Scm ::Commit . new ( :token => 'bd7e455d648b784ce4be2db26a4e62dfe734dd66' ) , Scm ::Diff . new ( :path => 'helloworld.c' ) )
24+ assert_equal nil , darcs . cat_file ( OhlohScm ::Commit . new ( :token => '1007b5ad4831769283213d47e1fd5f6d30ac97f0' ) , OhlohScm ::Diff . new ( :path => 'helloworld.c' ) )
25+ assert_equal expected , darcs . cat_file_parent ( OhlohScm ::Commit . new ( :token => '1007b5ad4831769283213d47e1fd5f6d30ac97f0' ) , OhlohScm ::Diff . new ( :path => 'helloworld.c' ) )
26+ assert_equal expected , darcs . cat_file ( OhlohScm ::Commit . new ( :token => 'bd7e455d648b784ce4be2db26a4e62dfe734dd66' ) , OhlohScm ::Diff . new ( :path => 'helloworld.c' ) )
2727 end
2828 end
2929
3030 # Ensure that we escape bash-significant characters like ' and & when they appear in the filename
3131 # NB only works with --reserved-ok, otherwise darcs rejects with "invalid under Windows"
3232 def test_funny_file_name_chars
33- Scm ::ScratchDir . new do |dir |
33+ OhlohScm ::ScratchDir . new do |dir |
3434 # Make a file with a problematic filename
3535 funny_name = '|file_name (&\'")'
3636 File . open ( File . join ( dir , funny_name ) , 'w' ) { |f | f . write "contents" }
@@ -40,7 +40,7 @@ def test_funny_file_name_chars
4040 darcs . run ( "cd #{ dir } && darcs init && darcs add --reserved-ok * && darcs record -a -m test" )
4141
4242 # Confirm that we can read the file back
43- assert_equal "contents" , darcs . cat_file ( darcs . head , Scm ::Diff . new ( :path => funny_name ) )
43+ assert_equal "contents" , darcs . cat_file ( darcs . head , OhlohScm ::Diff . new ( :path => funny_name ) )
4444 end
4545 end
4646
0 commit comments