Author: joeswatosh
Date: Tue Aug  3 03:00:54 2010
New Revision: 981729

URL: http://svn.apache.org/viewvc?rev=981729&view=rev
Log:
Rearrange code for clarity.

 * subversion/bindings/swig/ruby/test/test_info.rb
    (SvnInfoTest#test_changed): Move the modifications of file1, 2, and 3
      from the first make_context block to the second where we actually check
      for the files to have changed.

Modified:
    subversion/trunk/subversion/bindings/swig/ruby/test/test_info.rb

Modified: subversion/trunk/subversion/bindings/swig/ruby/test/test_info.rb
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/ruby/test/test_info.rb?rev=981729&r1=981728&r2=981729&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/ruby/test/test_info.rb (original)
+++ subversion/trunk/subversion/bindings/swig/ruby/test/test_info.rb Tue Aug  3 
03:00:54 2010
@@ -133,14 +133,13 @@ class SvnInfoTest < Test::Unit::TestCase
       assert_equal([].sort, info.deleted_dirs)
       assert_equal(["#{dir_svn_path}/", "#{tmp_dir_svn_path}/"].sort,
                    info.added_dirs)
-
-      File.open(file1_path, "w") {|f| f.puts "changed"}
-      File.open(file2_path, "w") {|f| f.puts "changed"}
-      File.open(file3_path, "w") {|f| f.puts "changed"}
     end
 
     log = "changed 3 files\ndeleted 2 files\nadded 3 files"
     make_context(log) do |ctx|
+      File.open(file1_path, "w") {|f| f.puts "changed"}
+      File.open(file2_path, "w") {|f| f.puts "changed"}
+      File.open(file3_path, "w") {|f| f.puts "changed"}
       ctx.rm_f([file4_path, file5_path])
       FileUtils.touch(file6_path)
       FileUtils.touch(file7_path)


Reply via email to