|
svn commit: r13162 - branches/ruby/subversion/bindings/swig/ruby/test: msg#00342version-control.subversion.svn
Author: kou Date: Fri Feb 25 23:18:14 2005 New Revision: 13162 Modified: branches/ruby/subversion/bindings/swig/ruby/test/run-test.rb (props changed) branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb Log: Improve tests. * subversion/bindings/swig/ruby/test/run-test.rb: Add svn:executable property. * subversion/bindings/swig/ruby/test/test_delta.rb: - Remove unused variables. - Add a test pattern that changes all directories. Modified: branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb Url: http://svn.collab.net/viewcvs/svn/branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb?view=diff&rev=13162&p1=branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb&r1=13161&p2=branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb&r2=13162 ============================================================================== --- branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb (original) +++ branches/ruby/subversion/bindings/swig/ruby/test/test_delta.rb Fri Feb 25 23:18:14 2005 @@ -138,40 +138,25 @@ prop_name = "prop" prop_value = "value" - dir = "changed_dir" + dir = "dir" dir_path = File.join(@wc_path, dir) dir_svn_path = dir - log = "added 1 dirs\nanded 5 files" + log = "added 1 dirs\nanded 2 files" ctx = make_context(log) ctx.mkdir([dir_path]) - file1 = "changed1.txt" - file2 = "changed2.txt" - file3 = "changed3.txt" - file4 = "changed4.txt" - file5 = "changed5.txt" + file1 = "file1.txt" + file2 = "file2.txt" file1_path = File.join(@wc_path, file1) file2_path = File.join(dir_path, file2) - file3_path = File.join(@wc_path, file3) - file4_path = File.join(dir_path, file4) - file5_path = File.join(@wc_path, file5) file1_svn_path = file1 file2_svn_path = [dir_svn_path, file2].join("/") - file3_svn_path = file3 - file4_svn_path = [dir_svn_path, file4].join("/") - file5_svn_path = file5 FileUtils.touch(file1_path) FileUtils.touch(file2_path) - FileUtils.touch(file3_path) - FileUtils.touch(file4_path) - FileUtils.touch(file5_path) ctx.add(file1_path) ctx.add(file2_path) - ctx.add(file3_path) - ctx.add(file4_path) - ctx.add(file5_path) ctx.propset(prop_name, prop_value, dir_path) @@ -200,6 +185,16 @@ editor = traverse(Svn::Delta::ChangedDirsEditor, commit_info.revision) assert_equal([""].collect{|path| "#{path}/"}.sort, + editor.changed_dirs) + + + ctx.propdel(prop_name, file1_path) + ctx.propset(prop_name, prop_value, file2_path) + + commit_info = ctx.commit(@wc_path) + + editor = traverse(Svn::Delta::ChangedDirsEditor, commit_info.revision) + assert_equal(["", dir_svn_path].collect{|path| "#{path}/"}.sort, editor.changed_dirs) end |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r13161 - in branches/ruby/subversion/bindings/swig/ruby: libsvn_swig_ruby test: 00342, kou-jqHnx1hy4Dsdnm+yROfE0A |
|---|---|
| Next by Date: | svn commit: r13163 - in branches/1.1.x: . subversion/bindings/swig/perl/native/t: 00342, clkao-jqHnx1hy4Dsdnm+yROfE0A |
| Previous by Thread: | svn commit: r13161 - in branches/ruby/subversion/bindings/swig/ruby: libsvn_swig_ruby testi: 00342, kou-jqHnx1hy4Dsdnm+yROfE0A |
| Next by Thread: | svn commit: r13163 - in branches/1.1.x: . subversion/bindings/swig/perl/native/t: 00342, clkao-jqHnx1hy4Dsdnm+yROfE0A |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |